<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-no-repeats-please" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-no-repeats-please</a> has an issue.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var k = 0;
function permAlone(str) {
   perm(&quot;&quot;,str);
   return k;
}
function perm(pre, str){
  if (str.length === 0){
    var x=true;
    for (var i = 0; i &lt; pre.length-1; i++){
      if (pre.split(&quot;&quot;)[i] == pre.split(&quot;&quot;)[i+1]) x = false;
    }
    if (x === true) k += 1;
  }
  else{
    for (var i = 0; i &lt; str.length; i++){
      perm(pre + str.charAt(i) , str.substring(0,i)+str.substring(i+1));
    }
  }
}
permAlone('aab');```
If I run the code outside fcc, I get the required results but in the challenges it moves all my results up by +2"><pre class="notranslate"><code class="notranslate">var k = 0;
function permAlone(str) {
   perm("",str);
   return k;
}
function perm(pre, str){
  if (str.length === 0){
    var x=true;
    for (var i = 0; i &lt; pre.length-1; i++){
      if (pre.split("")[i] == pre.split("")[i+1]) x = false;
    }
    if (x === true) k += 1;
  }
  else{
    for (var i = 0; i &lt; str.length; i++){
      perm(pre + str.charAt(i) , str.substring(0,i)+str.substring(i+1));
    }
  }
}
permAlone('aab');```
If I run the code outside fcc, I get the required results but in the challenges it moves all my results up by +2
</code></pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-no-repeats-please" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-no-repeats-please</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p>
<p dir="auto">The tests for this bonfire are adding two to the expected results. This somehow causes the bonfire checker to hang a bit and the tests to fail.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7762303/8343900/9bea40f8-1aa8-11e5-8d8c-c650f0f5021a.png"><img src="https://cloud.githubusercontent.com/assets/7762303/8343900/9bea40f8-1aa8-11e5-8d8c-c650f0f5021a.png" alt="screenshot 1" style="max-width: 100%;"></a></p>