From 73ab794280dc2149e2b39e2aa8f94ebecb5c3a5c Mon Sep 17 00:00:00 2001 From: syed zeeshan ali zaidi Date: Mon, 25 Apr 2016 15:29:40 +0200 Subject: [PATCH] hamming --- hamming.js | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/hamming.js b/hamming.js index 7c7ea3b..1b9d2e0 100644 --- a/hamming.js +++ b/hamming.js @@ -1,17 +1,11 @@ -// -// This is only a SKELETON file for the 'Hamming' exercise. It's been provided as a -// convenience to get you started writing code faster. -// Make sure to look at test.script.js--that should give you some hints about what is -// expected here. - -'use strict'; - function Hamming() {}; - Hamming.prototype.compute = function (strand1, strand2) { -// -// YOUR CODE GOES HERE -// -}; +var diff = 0; +for (i = 0; i