Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. {
  2. "tasks": [
  3. {
  4. "id": 1,
  5. "title": "Min-max from array",
  6. "description": "input array arr of length n, 1 <= n <=100, output: 2-length array [min,max], where min is smallest element from arr, max - biggest one",
  7. "authorId": 1,
  8. "points": 100,
  9. "tags": [
  10. "math",
  11. "array",
  12. "algorithms"
  13. ],
  14. "tests": [
  15. {
  16. "id": 1,
  17. "taskId": 1,
  18. "input": "[1,2,4,0,-4]",
  19. "output": "[-4,4]"
  20. },
  21. {
  22. "id": 2,
  23. "taskId": 1,
  24. "input": "[1,5,11,-4,-32,3,5,1,4,5,1,5,5,555,43]",
  25. "output": "[-32,555]"
  26. },
  27. {
  28. "id": 3,
  29. "taskId": 1,
  30. "input": "[9,2,3,7,1,5,3,2,3,-4]",
  31. "output": "[-4,9]"
  32. },
  33. {
  34. "id": 4,
  35. "taskId": 1,
  36. "input": "[-33,-42,-423,-323,-1,-9,-11,-932,-3,-3]",
  37. "output": "[-932,-1]"
  38. }
  39. ],
  40. "haveUserSolved": false,
  41. "timesSolved": 2,
  42. "timesSubmitted": 5
  43. },
  44. {
  45. "id": 2,
  46. "title": "Isograms",
  47. "description": "An isogram is a word that has no repeating letters, consecutive or non-consecutive. Implement a function that determines whether a string that contains only letters is an isogram. Assume the empty string is an isogram.",
  48. "authorId": 1,
  49. "points": 50,
  50. "tags": [
  51. "strings"
  52. ],
  53. "tests": [
  54. {
  55. "id": 1,
  56. "taskId": 1,
  57. "input": "Dermatoglyphics",
  58. "output": true
  59. },
  60. {
  61. "id": 2,
  62. "taskId": 1,
  63. "input": "aba",
  64. "output": false
  65. },
  66. {
  67. "id": 3,
  68. "taskId": 1,
  69. "input": "Sample",
  70. "output": true
  71. },
  72. ],
  73. "haveUserSolved": false,
  74. "timesSolved": 12,
  75. "timesSubmitted": 123
  76. },
  77. {
  78. "id": 3,
  79. "title": "primes",
  80. "description": "input n: 1 < n < 100, output: n first prime numbers",
  81. "authorId": 1,
  82. "points": 100,
  83. "tags": [
  84. "math"
  85. ],
  86. "tests": [
  87. {
  88. "id": 5,
  89. "taskId": 3,
  90. "input": "2",
  91. "output": "[2, 3]"
  92. },
  93. {
  94. "id": 6,
  95. "taskId": 1,
  96. "input": "10",
  97. "output": "[2, 3, 5, 7, 11, 13, 17, 19, 23, 29]"
  98. },
  99. {
  100. "id": 7,
  101. "taskId": 1,
  102. "input": "20",
  103. "output": "[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71]"
  104. },
  105. {
  106. "id": 8,
  107. "taskId": 1,
  108. "input": "30",
  109. "output": "[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]"
  110. }
  111. ],
  112. "haveUserSolved": false,
  113. "timesSolved": 12,
  114. "timesSubmitted": 123
  115. },
  116. {
  117. "id": 4,
  118. "title": "Reverse words",
  119. "description": "Write a reverseWords function that accepts a string a parameter, and reverses each word in the string. Any spaces in the string should be retained.",
  120. "authorId": 1,
  121. "points": 200,
  122. "tags": [
  123. "strings"
  124. ],
  125. "tests": [
  126. {
  127. "id": 1,
  128. "taskId": 1,
  129. "input": "aba",
  130. "output": "aba"
  131. },
  132. {
  133. "id": 2,
  134. "taskId": 1,
  135. "input": "This is an example!",
  136. "output": "sihT si na !elpmaxe"
  137. },
  138. {
  139. "id": 3,
  140. "taskId": 1,
  141. "input": "double spaces",
  142. "output": "elbuod secaps"
  143. },
  144. {
  145. "id": 4,
  146. "taskId": 1,
  147. "input": "a",
  148. "output": "a"
  149. }
  150. ],
  151. "haveUserSolved": false,
  152. "timesSolved": 12,
  153. "timesSubmitted": 123
  154. }
  155. ]
  156. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement