{"action":"closed","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/3837","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/3837/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/3837/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/3837/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/3837","id":112689142,"number":3837,"title":"Add solutions to Intermediate Bonfires","user":{"login":"QuincyLarson","id":985197,"avatar_url":"https://avatars.githubusercontent.com/u/985197?v=3","gravatar_id":"","url":"https://api.github.com/users/QuincyLarson","html_url":"https://github.com/QuincyLarson","followers_url":"https://api.github.com/users/QuincyLarson/followers","following_url":"https://api.github.com/users/QuincyLarson/following{/other_user}","gists_url":"https://api.github.com/users/QuincyLarson/gists{/gist_id}","starred_url":"https://api.github.com/users/QuincyLarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuincyLarson/subscriptions","organizations_url":"https://api.github.com/users/QuincyLarson/orgs","repos_url":"https://api.github.com/users/QuincyLarson/repos","events_url":"https://api.github.com/users/QuincyLarson/events{/privacy}","received_events_url":"https://api.github.com/users/QuincyLarson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-21T22:06:28Z","updated_at":"2015-10-24T04:44:45Z","closed_at":"2015-10-24T04:44:45Z","body":"Reference this closed pull request if you're need a guide as to the formatting: https://github.com/FreeCodeCamp/FreeCodeCamp/pull/3835\r\n\r\nFor each challenge, add a solution like this to it's object: \r\n      \"solutions\": [\r\n        \"function pairwise(arr, arg) {\\n  var sum = 0;\\n  arr.forEach(function(e, i, a) {\\n    if (e != null) {      \\n      var diff = arg-e;\\n      a[i] = null;\\n      var dix = a.indexOf(diff);\\n      if (dix !== -1) {\\n        sum += dix;\\n        sum += i;\\n        a[dix] = null;\\n      }  \\n    }\\n  });\\n  return sum;\\n}\\n\\npairwise([1,4,2,3,0,5], 7);\\n\"\r\n      ],\r\n\r\nSolutions can be pulled from @dting's profile (he has completed all of them). Open up the \r\n\r\nOnce you have opened his solution, open up the console and paste in this JavaScript:\r\nJSON.stringify(editor.getValue());\r\n\r\nCopy the string that it returns and paste it into your new solutions array. Make sure you get rid of any excess double quotes at the beginning or end of the string."}}