Skip to content

Commit

Permalink
Add stubs for few exercises (#724)
Browse files Browse the repository at this point in the history
* alphametics
* atbash-cipher
* binary-search
* bowling
  • Loading branch information
tejasbubane authored and SleeplessByte committed Sep 18, 2019
1 parent 041ac55 commit d4cc5f5
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions exercises/alphametics/alphametics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// This is only a SKELETON file for the 'Alphametics' exercise. It's been provided as a
// convenience to get you started writing code faster.
//

export const solve = () => {
throw new Error("Remove this statement and implement this function");
};
8 changes: 8 additions & 0 deletions exercises/atbash-cipher/atbash-cipher.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// This is only a SKELETON file for the 'Atbash Cipher' exercise. It's been provided as a
// convenience to get you started writing code faster.
//

export const encode = () => {
throw new Error("Remove this statement and implement this function");
};
18 changes: 18 additions & 0 deletions exercises/binary-search/binary-search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// This is only a SKELETON file for the 'Binary Search' exercise. It's been provided as a
// convenience to get you started writing code faster.
//

export class BinarySearch {
constructor() {
throw new Error("Remove this statement and implement this function");
}

get array() {
throw new Error("Remove this statement and implement this function");
}

indexOf() {
throw new Error("Remove this statement and implement this function");
}
}
14 changes: 14 additions & 0 deletions exercises/bowling/bowling.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// This is only a SKELETON file for the 'Bowling' exercise. It's been provided as a
// convenience to get you started writing code faster.
//

export class Bowling {
roll() {
throw new Error("Remove this statement and implement this function");
}

score() {
throw new Error("Remove this statement and implement this function");
}
}

0 comments on commit d4cc5f5

Please sign in to comment.