Skip to content

Commit

Permalink
added decrement solution and added mix skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
nyrkuredla committed Oct 18, 2017
1 parent fb6cc3e commit 52384eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/decrement.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
* Write a function that decrements the value of the first parameter
* @param {Number} a
*/
function decrement() {
function decrement(a) {
// write code here
return a - 1;
}

module.exports = decrement;
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
max: require("./max"),
median: require("./median"),
min: require("./min"),
min: require('./mix'),
permute: require("./permute"),
power: require("./power"),
prime: require("./prime"),
Expand Down
7 changes: 7 additions & 0 deletions lib/mix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Write a function that returns the contents of an array in random order

function mix(a) {
//write code here
}

module.exports = mix;

0 comments on commit 52384eb

Please sign in to comment.