Skip to content

Commit

Permalink
exercise stubs - part 1 of 4
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
keiravillekode committed Oct 2, 2024
1 parent 2cdd441 commit 78c5930
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module armstrong_numbers;

pure bool isArmstrongNumber(immutable int number)
{
// implement this function
}

unittest
{
immutable int allTestsEnabled = 0;
Expand Down
5 changes: 5 additions & 0 deletions exercises/practice/bob/source/bob.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module bob;

pure string hey(immutable string text)
{
// implement this function
}

unittest
{
immutable int allTestsEnabled = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module collatz_conjecture;

pure int steps(immutable int number)
{
// implement this function
}

unittest
{
import std.exception : assertThrown;
Expand Down
5 changes: 5 additions & 0 deletions exercises/practice/darts/source/darts.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module darts;

pure int score(immutable float x, immutable float y)
{
// implement this function
}

unittest
{
immutable int allTestsEnabled = 0;
Expand Down
5 changes: 5 additions & 0 deletions exercises/practice/etl/source/etl.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import std.array : array;
import std.algorithm.sorting : sort;
import std.algorithm.comparison : equal;

pure int[dchar] transform(immutable string[int] score_map)
{
// implement this function
}

unittest
{

Expand Down
10 changes: 10 additions & 0 deletions exercises/practice/grains/source/grains.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
module grains;

pure ulong square(immutable ulong num)
{
// implement this function
}

pure ulong total()
{
// implement this function
}

unittest
{
import std.exception : assertThrown;
Expand Down

0 comments on commit 78c5930

Please sign in to comment.