trackler 2.2.1.26 → 2.2.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/problem-specifications/exercises/circular-buffer/canonical-data.json +4 -4
- data/problem-specifications/exercises/circular-buffer/description.md +13 -6
- data/tracks/csharp/docs/INSTALLATION.md +3 -3
- data/tracks/csharp/docs/SNIPPET.txt +2 -2
- data/tracks/csharp/exercises/accumulate/Accumulate.csproj +0 -1
- data/tracks/csharp/exercises/acronym/Acronym.csproj +1 -1
- data/tracks/csharp/exercises/all-your-base/AllYourBase.csproj +0 -1
- data/tracks/csharp/exercises/allergies/Allergies.csproj +0 -1
- data/tracks/csharp/exercises/alphametics/Alphametics.csproj +0 -1
- data/tracks/csharp/exercises/anagram/Anagram.csproj +0 -1
- data/tracks/csharp/exercises/atbash-cipher/AtbashCipher.csproj +0 -1
- data/tracks/csharp/exercises/bank-account/BankAccount.csproj +0 -1
- data/tracks/csharp/exercises/beer-song/BeerSong.csproj +0 -1
- data/tracks/csharp/exercises/binary-search/BinarySearch.csproj +0 -1
- data/tracks/csharp/exercises/binary-search-tree/BinarySearchTree.csproj +0 -1
- data/tracks/csharp/exercises/bob/Bob.csproj +0 -1
- data/tracks/csharp/exercises/book-store/BookStore.csproj +0 -1
- data/tracks/csharp/exercises/bowling/Bowling.csproj +0 -1
- data/tracks/csharp/exercises/bracket-push/BracketPush.csproj +0 -1
- data/tracks/csharp/exercises/change/Change.csproj +0 -1
- data/tracks/csharp/exercises/circular-buffer/CircularBuffer.csproj +0 -1
- data/tracks/csharp/exercises/clock/Clock.csproj +0 -1
- data/tracks/csharp/exercises/collatz-conjecture/CollatzConjecture.csproj +1 -2
- data/tracks/csharp/exercises/complex-numbers/ComplexNumbers.csproj +1 -1
- data/tracks/csharp/exercises/connect/Connect.csproj +0 -1
- data/tracks/csharp/exercises/crypto-square/CryptoSquare.csproj +0 -1
- data/tracks/csharp/exercises/custom-set/CustomSet.csproj +0 -1
- data/tracks/csharp/exercises/diamond/Diamond.csproj +0 -1
- data/tracks/csharp/exercises/difference-of-squares/DifferenceOfSquares.csproj +0 -1
- data/tracks/csharp/exercises/diffie-hellman/DiffieHellman.csproj +0 -1
- data/tracks/csharp/exercises/dominoes/Dominoes.csproj +0 -1
- data/tracks/csharp/exercises/dot-dsl/DotDsl.csproj +0 -1
- data/tracks/csharp/exercises/error-handling/ErrorHandling.csproj +0 -1
- data/tracks/csharp/exercises/etl/Etl.csproj +0 -1
- data/tracks/csharp/exercises/flatten-array/FlattenArray.csproj +0 -1
- data/tracks/csharp/exercises/food-chain/FoodChain.csproj +0 -1
- data/tracks/csharp/exercises/forth/Forth.csproj +0 -1
- data/tracks/csharp/exercises/gigasecond/Gigasecond.csproj +1 -2
- data/tracks/csharp/exercises/go-counting/GoCounting.csproj +1 -2
- data/tracks/csharp/exercises/grade-school/GradeSchool.csproj +1 -2
- data/tracks/csharp/exercises/grains/Grains.csproj +1 -2
- data/tracks/csharp/exercises/grep/Grep.csproj +1 -2
- data/tracks/csharp/exercises/hamming/Hamming.csproj +1 -2
- data/tracks/csharp/exercises/hangman/Hangman.csproj +1 -2
- data/tracks/csharp/exercises/hello-world/HelloWorld.csproj +1 -2
- data/tracks/csharp/exercises/house/House.csproj +1 -2
- data/tracks/csharp/exercises/isogram/Isogram.csproj +1 -2
- data/tracks/csharp/exercises/kindergarten-garden/KindergartenGarden.csproj +1 -2
- data/tracks/csharp/exercises/largest-series-product/LargestSeriesProduct.csproj +1 -2
- data/tracks/csharp/exercises/leap/Leap.csproj +1 -2
- data/tracks/csharp/exercises/ledger/Ledger.csproj +1 -2
- data/tracks/csharp/exercises/linked-list/LinkedList.csproj +1 -2
- data/tracks/csharp/exercises/list-ops/ListOps.csproj +1 -2
- data/tracks/csharp/exercises/luhn/Luhn.csproj +1 -2
- data/tracks/csharp/exercises/markdown/Markdown.csproj +1 -2
- data/tracks/csharp/exercises/matrix/Matrix.csproj +1 -2
- data/tracks/csharp/exercises/meetup/Meetup.csproj +1 -2
- data/tracks/csharp/exercises/minesweeper/Minesweeper.csproj +1 -2
- data/tracks/csharp/exercises/nth-prime/NthPrime.csproj +1 -2
- data/tracks/csharp/exercises/nucleotide-count/NucleotideCount.csproj +1 -2
- data/tracks/csharp/exercises/ocr-numbers/OcrNumbers.csproj +1 -2
- data/tracks/csharp/exercises/palindrome-products/PalindromeProducts.csproj +1 -2
- data/tracks/csharp/exercises/pangram/Pangram.csproj +1 -2
- data/tracks/csharp/exercises/parallel-letter-frequency/ParallelLetterFrequency.csproj +1 -2
- data/tracks/csharp/exercises/pascals-triangle/PascalsTriangle.csproj +1 -2
- data/tracks/csharp/exercises/perfect-numbers/PerfectNumbers.csproj +1 -2
- data/tracks/csharp/exercises/phone-number/PhoneNumber.csproj +1 -2
- data/tracks/csharp/exercises/pig-latin/PigLatin.csproj +1 -2
- data/tracks/csharp/exercises/poker/Poker.csproj +1 -2
- data/tracks/csharp/exercises/pov/Pov.csproj +1 -2
- data/tracks/csharp/exercises/prime-factors/PrimeFactors.csproj +1 -2
- data/tracks/csharp/exercises/protein-translation/ProteinTranslation.csproj +1 -2
- data/tracks/csharp/exercises/proverb/Proverb.csproj +1 -2
- data/tracks/csharp/exercises/pythagorean-triplet/PythagoreanTriplet.csproj +1 -2
- data/tracks/csharp/exercises/queen-attack/QueenAttack.csproj +1 -2
- data/tracks/csharp/exercises/rail-fence-cipher/RailFenceCipher.csproj +1 -2
- data/tracks/csharp/exercises/raindrops/Raindrops.csproj +1 -2
- data/tracks/csharp/exercises/react/React.csproj +1 -2
- data/tracks/csharp/exercises/rectangles/Rectangles.csproj +1 -2
- data/tracks/csharp/exercises/rna-transcription/RnaTranscription.csproj +1 -2
- data/tracks/csharp/exercises/robot-name/RobotName.csproj +1 -2
- data/tracks/csharp/exercises/robot-simulator/RobotSimulator.csproj +1 -2
- data/tracks/csharp/exercises/roman-numerals/RomanNumerals.csproj +1 -2
- data/tracks/csharp/exercises/rotational-cipher/RotationalCipher.csproj +1 -2
- data/tracks/csharp/exercises/run-length-encoding/RunLengthEncoding.csproj +1 -2
- data/tracks/csharp/exercises/saddle-points/SaddlePoints.csproj +1 -2
- data/tracks/csharp/exercises/say/Say.csproj +1 -2
- data/tracks/csharp/exercises/scale-generator/ScaleGenerator.csproj +1 -2
- data/tracks/csharp/exercises/scrabble-score/ScrabbleScore.csproj +1 -2
- data/tracks/csharp/exercises/secret-handshake/SecretHandshake.csproj +1 -2
- data/tracks/csharp/exercises/series/Series.csproj +1 -2
- data/tracks/csharp/exercises/sgf-parsing/SgfParsing.csproj +1 -2
- data/tracks/csharp/exercises/sieve/Sieve.csproj +1 -2
- data/tracks/csharp/exercises/simple-cipher/SimpleCipher.csproj +1 -2
- data/tracks/csharp/exercises/simple-linked-list/SimpleLinkedList.csproj +1 -2
- data/tracks/csharp/exercises/space-age/SpaceAge.csproj +1 -2
- data/tracks/csharp/exercises/spiral-matrix/SpiralMatrix.csproj +2 -3
- data/tracks/csharp/exercises/strain/Strain.csproj +1 -2
- data/tracks/csharp/exercises/sublist/Sublist.csproj +1 -2
- data/tracks/csharp/exercises/sum-of-multiples/SumOfMultiples.csproj +1 -2
- data/tracks/csharp/exercises/tournament/Tournament.csproj +1 -2
- data/tracks/csharp/exercises/transpose/Transpose.csproj +1 -2
- data/tracks/csharp/exercises/tree-building/TreeBuilding.csproj +1 -2
- data/tracks/csharp/exercises/triangle/Triangle.csproj +1 -2
- data/tracks/csharp/exercises/twelve-days/TwelveDays.csproj +1 -2
- data/tracks/csharp/exercises/two-bucket/TwoBucket.csproj +1 -2
- data/tracks/csharp/exercises/two-fer/TwoFer.csproj +2 -3
- data/tracks/csharp/exercises/variable-length-quantity/VariableLengthQuantity.csproj +1 -2
- data/tracks/csharp/exercises/word-count/WordCount.csproj +1 -2
- data/tracks/csharp/exercises/word-search/WordSearch.csproj +1 -2
- data/tracks/csharp/exercises/wordy/Wordy.csproj +1 -2
- data/tracks/csharp/exercises/zebra-puzzle/ZebraPuzzle.csproj +1 -2
- data/tracks/csharp/exercises/zipper/Zipper.csproj +1 -2
- data/tracks/go/README.md +73 -37
- data/tracks/go/exercises/series/.meta/hints.md +42 -0
- data/tracks/go/exercises/series/README.md +44 -0
- data/tracks/go/exercises/simple-cipher/.meta/description.md +98 -0
- data/tracks/go/exercises/simple-cipher/.meta/hints.md +35 -0
- data/tracks/go/exercises/simple-cipher/.meta/metadata.yml +4 -0
- data/tracks/go/exercises/simple-cipher/README.md +92 -39
- data/tracks/go/exercises/simple-cipher/simple_cipher_test.go +0 -30
- data/tracks/haskell/exercises/accumulate/README.md +0 -3
- data/tracks/haxe/config/maintainers.json +3 -5
- data/tracks/haxe/config.json +21 -19
- data/tracks/haxe/exercises/leap/.munit +6 -0
- data/tracks/haxe/exercises/leap/src/Leap.hx +7 -0
- data/tracks/haxe/exercises/leap/src/example.hx +7 -0
- data/tracks/haxe/exercises/leap/test/LeapTest.hx +46 -0
- data/tracks/haxe/exercises/leap/test/TestMain.hx +81 -0
- data/tracks/haxe/exercises/leap/test/TestSuite.hx +19 -0
- data/tracks/haxe/exercises/leap/test.hxml +8 -0
- data/tracks/javascript/docs/TESTS.md +1 -1
- data/tracks/python/config.json +11 -0
- data/tracks/python/exercises/complex-numbers/README.md +22 -0
- data/tracks/python/exercises/complex-numbers/complex_numbers.py +24 -0
- data/tracks/python/exercises/complex-numbers/complex_numbers_test.py +156 -0
- data/tracks/python/exercises/complex-numbers/example.py +42 -0
- data/tracks/typescript/config.json +15 -1
- data/tracks/typescript/docs/ABOUT.md +17 -1
- data/tracks/typescript/exercises/acronym/README.md +35 -0
- data/tracks/typescript/exercises/acronym/acronym.example.ts +9 -0
- data/tracks/typescript/exercises/acronym/acronym.test.ts +27 -0
- data/tracks/typescript/exercises/acronym/acronym.ts +5 -0
- data/tracks/typescript/exercises/acronym/package.json +36 -0
- data/tracks/typescript/exercises/acronym/tsconfig.json +22 -0
- data/tracks/typescript/exercises/acronym/tslint.json +127 -0
- data/tracks/typescript/exercises/acronym/yarn.lock +2305 -0
- metadata +25 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eba2a1d8fc60987a49bd6540cf30c56d898dfe20
|
4
|
+
data.tar.gz: 2069c1589727e3589cecae15f17e43a754775bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f016ddebdcd29c9fb0ae96a094ce764608fb8ccc6606ee11f4ddaef15ba301db50f66376546e2d9943a834a91365843afdf858221a917a79c7a69569d7f29d
|
7
|
+
data.tar.gz: 56edea83d76ba56b4761b77a6a506b485d9582ae2ca9e3ea800f766b551561d0d3b2e09d345a8ea791a81bfa1587ac46c8006c386725c0a717f94225d2cfe09e
|
data/lib/trackler/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"exercise": "circular-buffer",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.1",
|
4
4
|
"comments": [
|
5
5
|
"In general, these circular buffers are expected to be stateful,",
|
6
6
|
"and each language will operate on them differently.",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
" If it should succeed, it should produce the item at `expected`. ",
|
14
14
|
" If it should fail, `expected` will not be present. ",
|
15
15
|
"write: Writing the item located at `item` should succeed if and only if `should_succeed` is true.",
|
16
|
-
"overwrite: Write the item located at `item` into the buffer,
|
16
|
+
"overwrite: Write the item located at `item` into the buffer, replacing the oldest item if necessary.",
|
17
17
|
"clear: Clear the buffer.",
|
18
18
|
"",
|
19
19
|
"Failure of either `read` or `write` may be indicated in a manner appropriate for your language:",
|
@@ -273,7 +273,7 @@
|
|
273
273
|
]
|
274
274
|
},
|
275
275
|
{
|
276
|
-
"description": "overwrite
|
276
|
+
"description": "overwrite replaces the oldest item on full buffer",
|
277
277
|
"property": "run",
|
278
278
|
"capacity": 2,
|
279
279
|
"operations": [
|
@@ -304,7 +304,7 @@
|
|
304
304
|
]
|
305
305
|
},
|
306
306
|
{
|
307
|
-
"description": "overwrite
|
307
|
+
"description": "overwrite replaces the oldest item remaining in buffer following a read",
|
308
308
|
"property": "run",
|
309
309
|
"capacity": 3,
|
310
310
|
"operations": [
|
@@ -29,14 +29,21 @@ If the buffer has 7 elements then it is completely full:
|
|
29
29
|
When the buffer is full an error will be raised, alerting the client
|
30
30
|
that further writes are blocked until a slot becomes free.
|
31
31
|
|
32
|
-
|
33
|
-
this case, two more elements — A & B —
|
34
|
-
3 & 4:
|
32
|
+
When the buffer is full, the client can opt to overwrite the oldest
|
33
|
+
data with a forced write. In this case, two more elements — A & B —
|
34
|
+
are added and they overwrite the 3 & 4:
|
35
35
|
|
36
36
|
[6][7][8][9][A][B][5]
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
buffer
|
38
|
+
3 & 4 have been replaced by A & B making 5 now the oldest data in the
|
39
|
+
buffer. Finally, if two elements are removed then what would be
|
40
|
+
returned is 5 & 6 yielding the buffer:
|
41
41
|
|
42
42
|
[ ][7][8][9][A][B][ ]
|
43
|
+
|
44
|
+
Because there is space available, if the client again uses overwrite
|
45
|
+
to store C & D then the space where 5 & 6 were stored previously will
|
46
|
+
be used not the location of 7 & 8. 7 is still the oldest element and
|
47
|
+
the buffer is once again full.
|
48
|
+
|
49
|
+
[D][7][8][9][A][B][C]
|
@@ -6,15 +6,15 @@ The C# track is built on top of the [.NET Core](https://www.microsoft.com/net/co
|
|
6
6
|
dotnet --version
|
7
7
|
```
|
8
8
|
|
9
|
-
|
9
|
+
If the output is a version greater than or equal to `1.0.0`, the .NET Core SDK has been installed succesfully.
|
10
10
|
|
11
11
|
### Using an IDE
|
12
12
|
|
13
|
-
If you want a more full-featured editing experience, you probably want to
|
13
|
+
If you want a more full-featured editing experience, you probably want to use an IDE. These are the most popular IDE's that support building .NET Core projects:
|
14
14
|
|
15
15
|
* [Visual Studio 2017](https://www.visualstudio.com/downloads/)
|
16
16
|
* [Visual Studio Code](https://code.visualstudio.com/download) with the [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)
|
17
17
|
* [Visual Studio for Mac](https://www.visualstudio.com/vs/visual-studio-mac/) (still in beta)
|
18
18
|
* [Project Rider](https://www.jetbrains.com/rider/download/) (still in EAP)
|
19
19
|
|
20
|
-
Note: as the .NET Core project format differs significantly from earlier versions, older IDE's (like Visual Studio 2015 and Xamarin Studio) are not supported.
|
20
|
+
Note: as the .NET Core project format differs significantly from earlier versions, older IDE's (like Visual Studio 2015 and Xamarin Studio) are not supported.
|