trackler 2.1.0.5 → 2.1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53368d2c6f951fa2ab876df0b690320ba55336c5
4
- data.tar.gz: ad36bdd5732556237afe9e8dbdb3581c030958c9
3
+ metadata.gz: 620261476b48055d0323fba94bb437ce706ec439
4
+ data.tar.gz: 947ffcea3e9587dec2b25a7dd129e6e590039380
5
5
  SHA512:
6
- metadata.gz: bafa08cf3c809c5bb3b95f18a1e25a9805fab0c251497f993ad7d5137379317a55d85ff2975996ad9acec8725e2165bb42cf98bb6a0995712b7dfbe58f274153
7
- data.tar.gz: bfe6e996cf35d2c8be1ad6d8cc79a7f4e29d4e7e311dee91e174662d176b9a4f1f5e8e8121c9404b0490a5db48be42d68756646035af19fadf0eb5d6ba3f32cf
6
+ metadata.gz: 743e170938414ca4ac8c659f12e491a1fc936e13e80a3ca925bca14d5e0aabeea17c232cbebaadc1502591643ace81d067d279168a2cb6bb255dd094a442edf5
7
+ data.tar.gz: 3a4063e9244b78cf505ded3ba77399b212bd12810dd644f3f3d14e5e2ae7a13a869a15e8f2418dbfe056a771d97101ea9f13d10eaada279bd973b14b28320a16
@@ -0,0 +1,87 @@
1
+ {
2
+ "exercise": "saddle-points",
3
+ "version": "1.0.0",
4
+ "comments": [
5
+ "Matrix rows and columns are 0-indexed."
6
+ ],
7
+ "cases": [
8
+ {
9
+ "description": "Can identify single saddle point",
10
+ "comments": [
11
+ "This is the README example."
12
+ ],
13
+ "property": "saddlePoints",
14
+ "input": [
15
+ [9, 8, 7],
16
+ [5, 3, 2],
17
+ [6, 6, 7]
18
+ ],
19
+ "expected": [
20
+ {
21
+ "row": 1,
22
+ "column": 0
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "description": "Can identify that empty matrix has no saddle points",
28
+ "property": "saddlePoints",
29
+ "input": [
30
+ []
31
+ ],
32
+ "expected": []
33
+ },
34
+ {
35
+ "description": "Can identify lack of saddle points when there are none",
36
+ "property": "saddlePoints",
37
+ "input": [
38
+ [1, 2, 3],
39
+ [3, 1, 2],
40
+ [2, 3, 1]
41
+ ],
42
+ "expected": []
43
+ },
44
+ {
45
+ "description": "Can identify multiple saddle points",
46
+ "property": "saddlePoints",
47
+ "input": [
48
+ [4, 5, 4],
49
+ [3, 5, 5],
50
+ [1, 5, 4]
51
+ ],
52
+ "expected": [
53
+ {
54
+ "row": 0,
55
+ "column": 1
56
+ },
57
+ {
58
+ "row": 1,
59
+ "column": 1
60
+ },
61
+ {
62
+ "row": 2,
63
+ "column": 1
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "description": "Can identify saddle point in bottom right corner",
69
+ "comments": [
70
+ "This is a permutation of the README matrix designed to test",
71
+ "off-by-one errors."
72
+ ],
73
+ "property": "saddlePoints",
74
+ "input": [
75
+ [8, 7, 9],
76
+ [6, 7, 6],
77
+ [3, 2, 5]
78
+ ],
79
+ "expected": [
80
+ {
81
+ "row": 2,
82
+ "column": 2
83
+ }
84
+ ]
85
+ }
86
+ ]
87
+ }
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.1.0.5"
2
+ VERSION = "2.1.0.6"
3
3
  end
@@ -159,19 +159,31 @@
159
159
  ]
160
160
  },
161
161
  {
162
- "difficulty": 1,
162
+ "difficulty": 4,
163
163
  "slug": "pascals-triangle",
164
- "topics": []
164
+ "topics": [
165
+ "Arrays",
166
+ "Mathematics"
167
+ ]
165
168
  },
166
169
  {
167
- "difficulty": 1,
170
+ "difficulty": 3,
168
171
  "slug": "series",
169
- "topics": []
172
+ "topics": [
173
+ "Strings",
174
+ "Arrays",
175
+ "Refactoring"
176
+ ]
170
177
  },
171
178
  {
172
- "difficulty": 1,
179
+ "difficulty": 5,
173
180
  "slug": "queen-attack",
174
- "topics": []
181
+ "topics": [
182
+ "Booleans",
183
+ "Logic",
184
+ "Games",
185
+ "Errors"
186
+ ]
175
187
  },
176
188
  {
177
189
  "difficulty": 2,
@@ -70,3 +70,9 @@ func BenchmarkSquare(b *testing.B) {
70
70
  b.StopTimer()
71
71
  }
72
72
  }
73
+
74
+ func BenchmarkTotal(b *testing.B) {
75
+ for i := 0; i < b.N; i++ {
76
+ Total()
77
+ }
78
+ }
@@ -2,6 +2,10 @@
2
2
 
3
3
  Exercism exercises in JavaScript
4
4
 
5
+ ## Installing
6
+
7
+ To run the tests, you'll need NodeJS and Jasmine. For information about how to install these tools, see the [Javascript](http://exercism.io/languages/javascript/about) page.
8
+
5
9
  ## Running Unit Test Suite
6
10
 
7
11
  The following commands assume that you are in the 'xjavascript' directory:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.5
4
+ version: 2.1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-01 00:00:00.000000000 Z
11
+ date: 2017-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -353,6 +353,7 @@ files:
353
353
  - common/exercises/run-length-encoding/canonical-data.json
354
354
  - common/exercises/run-length-encoding/description.md
355
355
  - common/exercises/run-length-encoding/metadata.yml
356
+ - common/exercises/saddle-points/canonical-data.json
356
357
  - common/exercises/saddle-points/description.md
357
358
  - common/exercises/saddle-points/metadata.yml
358
359
  - common/exercises/say/canonical-data.json