{"action":"closed","issue":{"url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/issues/36","labels_url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/issues/36/comments","events_url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/issues/36/events","html_url":"https://github.com/LaunchCodeEducation/cs50x-live/issues/36","id":126515914,"number":36,"title":"Exercise: Module 3, class 1 prep / Algorithmic Efficiency Quiz","user":{"login":"jesseilev","id":4194941,"avatar_url":"https://avatars.githubusercontent.com/u/4194941?v=3","gravatar_id":"","url":"https://api.github.com/users/jesseilev","html_url":"https://github.com/jesseilev","followers_url":"https://api.github.com/users/jesseilev/followers","following_url":"https://api.github.com/users/jesseilev/following{/other_user}","gists_url":"https://api.github.com/users/jesseilev/gists{/gist_id}","starred_url":"https://api.github.com/users/jesseilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesseilev/subscriptions","organizations_url":"https://api.github.com/users/jesseilev/orgs","repos_url":"https://api.github.com/users/jesseilev/repos","events_url":"https://api.github.com/users/jesseilev/events{/privacy}","received_events_url":"https://api.github.com/users/jesseilev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/labels/exercise","name":"exercise","color":"bfe5bf"},{"url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/labels/m3","name":"m3","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"jesseilev","id":4194941,"avatar_url":"https://avatars.githubusercontent.com/u/4194941?v=3","gravatar_id":"","url":"https://api.github.com/users/jesseilev","html_url":"https://github.com/jesseilev","followers_url":"https://api.github.com/users/jesseilev/followers","following_url":"https://api.github.com/users/jesseilev/following{/other_user}","gists_url":"https://api.github.com/users/jesseilev/gists{/gist_id}","starred_url":"https://api.github.com/users/jesseilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesseilev/subscriptions","organizations_url":"https://api.github.com/users/jesseilev/orgs","repos_url":"https://api.github.com/users/jesseilev/repos","events_url":"https://api.github.com/users/jesseilev/events{/privacy}","received_events_url":"https://api.github.com/users/jesseilev/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/milestones/1","html_url":"https://github.com/LaunchCodeEducation/cs50x-live/milestones/Rough%20Draft%20Unit%201","labels_url":"https://api.github.com/repos/LaunchCodeEducation/cs50x-live/milestones/1/labels","id":1503275,"number":1,"title":"Rough Draft Unit 1","description":"Get Modules 2 and 3 ready for final QA","creator":{"login":"jesseilev","id":4194941,"avatar_url":"https://avatars.githubusercontent.com/u/4194941?v=3","gravatar_id":"","url":"https://api.github.com/users/jesseilev","html_url":"https://github.com/jesseilev","followers_url":"https://api.github.com/users/jesseilev/followers","following_url":"https://api.github.com/users/jesseilev/following{/other_user}","gists_url":"https://api.github.com/users/jesseilev/gists{/gist_id}","starred_url":"https://api.github.com/users/jesseilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesseilev/subscriptions","organizations_url":"https://api.github.com/users/jesseilev/orgs","repos_url":"https://api.github.com/users/jesseilev/repos","events_url":"https://api.github.com/users/jesseilev/events{/privacy}","received_events_url":"https://api.github.com/users/jesseilev/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":4,"state":"open","created_at":"2016-01-12T21:51:26Z","updated_at":"2016-01-13T23:23:33Z","due_on":"2016-01-14T06:00:00Z","closed_at":null},"comments":2,"created_at":"2016-01-13T21:14:15Z","updated_at":"2016-01-13T23:23:33Z","closed_at":"2016-01-13T23:23:33Z","body":"_From @newjoiner on January 7, 2016 22:0_\n\nThe program for question 1 does not return the biggest number.  Does not have anything to do with the question, but just in case they copy the program over.\r\n\r\n\r\n### Original Program\r\n```c\r\n#include <cs50.h>\r\n#include <stdio.h>\r\n\r\nint main(void)\r\n{\r\n  // set up example data\r\n  int exampleArray[] = {12, -2, 0, 15, 27, 20, 6};\r\n  int exampleSize = 7;\r\n\r\n  bool seenOne = false;\r\n  int currentMax = 0;\r\n\r\n  for (int i = 0; i < exampleSize; i++)\r\n  {\r\n    if (!seenOne){\r\n      currentMax = exampleArray[i];\r\n    } else if (exampleArray[i] > currentMax){\r\n      currentMax = exampleArray[i];\r\n    }\r\n  }\r\n  printf(“The biggest number was %i\\n”, currentMax);\r\n}\r\n```\r\n\r\n### Suggested Program\r\n```c\r\n#include <cs50.h>\r\n#include <stdio.h>\r\n\r\nint main(void)\r\n{\r\n  \r\n  // set up example data\r\n  int exampleArray[] = {12, -2, 0, 15, 27, 20, 6};\r\n  int exampleSize = 7;\r\n\r\n  int currentMax = 0;\r\n\r\n  for (int i = 0; i < exampleSize; i++)\r\n  {\r\n        if (exampleArray[i] > currentMax )\r\n        {\r\n             currentMax = exampleArray[i];\r\n        } \r\n       \r\n  }\r\n  printf(\"The biggest number was %i\\n\", currentMax);\r\n}\r\n\r\n```\n\n_Copied from original issue: Launch-Code/cs50x-live-2016#140_"}}