{"action":"created","issue":{"url":"https://api.github.com/repos/Codemantic/satorarepo/issues/6","repository_url":"https://api.github.com/repos/Codemantic/satorarepo","labels_url":"https://api.github.com/repos/Codemantic/satorarepo/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Codemantic/satorarepo/issues/6/comments","events_url":"https://api.github.com/repos/Codemantic/satorarepo/issues/6/events","html_url":"https://github.com/Codemantic/satorarepo/issues/6","id":335918430,"node_id":"MDU6SXNzdWUzMzU5MTg0MzA=","number":6,"title":"Hackerrank Challenge 5","user":{"login":"fabiosalvi","id":29264173,"node_id":"MDQ6VXNlcjI5MjY0MTcz","avatar_url":"https://avatars3.githubusercontent.com/u/29264173?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiosalvi","html_url":"https://github.com/fabiosalvi","followers_url":"https://api.github.com/users/fabiosalvi/followers","following_url":"https://api.github.com/users/fabiosalvi/following{/other_user}","gists_url":"https://api.github.com/users/fabiosalvi/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosalvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosalvi/subscriptions","organizations_url":"https://api.github.com/users/fabiosalvi/orgs","repos_url":"https://api.github.com/users/fabiosalvi/repos","events_url":"https://api.github.com/users/fabiosalvi/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosalvi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"giusepperossetti","id":39102655,"node_id":"MDQ6VXNlcjM5MTAyNjU1","avatar_url":"https://avatars3.githubusercontent.com/u/39102655?v=4","gravatar_id":"","url":"https://api.github.com/users/giusepperossetti","html_url":"https://github.com/giusepperossetti","followers_url":"https://api.github.com/users/giusepperossetti/followers","following_url":"https://api.github.com/users/giusepperossetti/following{/other_user}","gists_url":"https://api.github.com/users/giusepperossetti/gists{/gist_id}","starred_url":"https://api.github.com/users/giusepperossetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giusepperossetti/subscriptions","organizations_url":"https://api.github.com/users/giusepperossetti/orgs","repos_url":"https://api.github.com/users/giusepperossetti/repos","events_url":"https://api.github.com/users/giusepperossetti/events{/privacy}","received_events_url":"https://api.github.com/users/giusepperossetti/received_events","type":"User","site_admin":false},"assignees":[{"login":"giusepperossetti","id":39102655,"node_id":"MDQ6VXNlcjM5MTAyNjU1","avatar_url":"https://avatars3.githubusercontent.com/u/39102655?v=4","gravatar_id":"","url":"https://api.github.com/users/giusepperossetti","html_url":"https://github.com/giusepperossetti","followers_url":"https://api.github.com/users/giusepperossetti/followers","following_url":"https://api.github.com/users/giusepperossetti/following{/other_user}","gists_url":"https://api.github.com/users/giusepperossetti/gists{/gist_id}","starred_url":"https://api.github.com/users/giusepperossetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giusepperossetti/subscriptions","organizations_url":"https://api.github.com/users/giusepperossetti/orgs","repos_url":"https://api.github.com/users/giusepperossetti/repos","events_url":"https://api.github.com/users/giusepperossetti/events{/privacy}","received_events_url":"https://api.github.com/users/giusepperossetti/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-26T17:21:38Z","updated_at":"2018-07-15T09:55:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"https://www.hackerrank.com/challenges/diagonal-difference/problem\r\n\r\n- [x] Solve using two nested for.\r\n- [x] Solve using only one for. (solved with flying colours. :-)\r\n- [ ] Solve using two nested while.\r\n- [ ] Tinker with it in order to use the \"break\" instruction.\r\n"},"comment":{"url":"https://api.github.com/repos/Codemantic/satorarepo/issues/comments/405080006","html_url":"https://github.com/Codemantic/satorarepo/issues/6#issuecomment-405080006","issue_url":"https://api.github.com/repos/Codemantic/satorarepo/issues/6","id":405080006,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTA4MDAwNg==","user":{"login":"francescomiano","id":40641770,"node_id":"MDQ6VXNlcjQwNjQxNzcw","avatar_url":"https://avatars0.githubusercontent.com/u/40641770?v=4","gravatar_id":"","url":"https://api.github.com/users/francescomiano","html_url":"https://github.com/francescomiano","followers_url":"https://api.github.com/users/francescomiano/followers","following_url":"https://api.github.com/users/francescomiano/following{/other_user}","gists_url":"https://api.github.com/users/francescomiano/gists{/gist_id}","starred_url":"https://api.github.com/users/francescomiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescomiano/subscriptions","organizations_url":"https://api.github.com/users/francescomiano/orgs","repos_url":"https://api.github.com/users/francescomiano/repos","events_url":"https://api.github.com/users/francescomiano/events{/privacy}","received_events_url":"https://api.github.com/users/francescomiano/received_events","type":"User","site_admin":false},"created_at":"2018-07-15T09:55:28Z","updated_at":"2018-07-15T09:55:28Z","author_association":"NONE","body":"\r\n```\r\nfunction diagonalDifference(arr) {\r\n    \r\n    let maxlength = arr.length;\r\n    let diagonale1 = 0;\r\n    let diagonale2 = 0;\r\n    let row = 0;\r\n    for (row=0; row<maxlength; row++) {  \r\n\t    diagonale1 += arr[row][row];\r\n        diagonale2 += arr[row][Math.abs(row - (maxlength-1))] \r\n    }\r\n       \r\n    return Math.abs(diagonale1 - diagonale2);\r\n}\r\n```"}}
{"actor":{"display_login":"francescomiano"}}