NyanDoggo commited on
Commit
60f4bd3
1 Parent(s): d180a73

Upload leetcode-dataset.json

Browse files
Files changed (1) hide show
  1. leetcode-dataset.json +1 -3
leetcode-dataset.json CHANGED
@@ -1,5 +1,4 @@
1
- {
2
- "train": [
3
  {
4
  "post_href": "https://leetcode.com/problems/two-sum/discuss/2361743/Python-Simple-Solution-oror-O(n)-Time-oror-O(n)-Space",
5
  "python_solutions": "class Solution:\n def twoSum(self, nums: List[int], target: int) -> List[int]:\n \n d = {}\n for i, j in enumerate(nums):\n r = target - j\n if r in d: return [d[r], i]\n d[j] = i\n\t\t\n\t\t# An Upvote will be encouraging",
@@ -25876,4 +25875,3 @@
25876
  "question": "You are given a string s that consists of the digits '1' to '9' and two integers k and minLength.\nA partition of s is called beautiful if:\ns is partitioned into k non-intersecting substrings.\nEach substring has a length of at least minLength.\nEach substring starts with a prime digit and ends with a non-prime digit. Prime digits are '2', '3', '5', and '7', and the rest of the digits are non-prime.\nReturn the number of beautiful partitions of s. Since the answer may be very large, return it modulo 109 + 7.\nA substring is a contiguous sequence of characters within a string.\n Example 1:\nInput: s = \"23542185131\", k = 3, minLength = 2\nOutput: 3\nExplanation: There exists three ways to create a beautiful partition:\n\"2354 | 218 | 5131\"\n\"2354 | 21851 | 31\"\n\"2354218 | 51 | 31\"\nExample 2:\nInput: s = \"23542185131\", k = 3, minLength = 3\nOutput: 1\nExplanation: There exists one way to create a beautiful partition: \"2354 | 218 | 5131\".\nExample 3:\nInput: s = \"3312958\", k = 3, minLength = 1\nOutput: 1\nExplanation: There exists one way to create a beautiful partition: \"331 | 29 | 58\".\n Constraints:\n1 <= k, minLength <= s.length <= 1000\ns consists of the digits '1' to '9'."
25877
  }
25878
  ]
25879
- }
 
1
+ [
 
2
  {
3
  "post_href": "https://leetcode.com/problems/two-sum/discuss/2361743/Python-Simple-Solution-oror-O(n)-Time-oror-O(n)-Space",
4
  "python_solutions": "class Solution:\n def twoSum(self, nums: List[int], target: int) -> List[int]:\n \n d = {}\n for i, j in enumerate(nums):\n r = target - j\n if r in d: return [d[r], i]\n d[j] = i\n\t\t\n\t\t# An Upvote will be encouraging",
 
25875
  "question": "You are given a string s that consists of the digits '1' to '9' and two integers k and minLength.\nA partition of s is called beautiful if:\ns is partitioned into k non-intersecting substrings.\nEach substring has a length of at least minLength.\nEach substring starts with a prime digit and ends with a non-prime digit. Prime digits are '2', '3', '5', and '7', and the rest of the digits are non-prime.\nReturn the number of beautiful partitions of s. Since the answer may be very large, return it modulo 109 + 7.\nA substring is a contiguous sequence of characters within a string.\n Example 1:\nInput: s = \"23542185131\", k = 3, minLength = 2\nOutput: 3\nExplanation: There exists three ways to create a beautiful partition:\n\"2354 | 218 | 5131\"\n\"2354 | 21851 | 31\"\n\"2354218 | 51 | 31\"\nExample 2:\nInput: s = \"23542185131\", k = 3, minLength = 3\nOutput: 1\nExplanation: There exists one way to create a beautiful partition: \"2354 | 218 | 5131\".\nExample 3:\nInput: s = \"3312958\", k = 3, minLength = 1\nOutput: 1\nExplanation: There exists one way to create a beautiful partition: \"331 | 29 | 58\".\n Constraints:\n1 <= k, minLength <= s.length <= 1000\ns consists of the digits '1' to '9'."
25876
  }
25877
  ]