{"action":"created","comment":{"url":"https://api.github.com/repos/natasha1237/Labs/pulls/comments/244226142","pull_request_review_id":188177749,"id":244226142,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDIyNjE0Mg==","diff_hunk":"@@ -0,0 +1,46 @@\n+/*У заданому рядку символів визначити символи, які зустрічаються по одному разу і надрукувати номери їх позицій.*/\n+#include <stdlib.h>\n+#include <iostream>\n+\n+using namespace std;\n+\n+int *getCharCountArray(char *str)\n+{\n+   int *count = (int *)calloc(sizeof(int), 256);\n+   int i;\n+   for (i = 0; *(str+i);  i++)\n+      count[*(str+i)]++;                \n+   return count;\n+}\n+\n+\n+void NonRepeating(char *str)\n+{\n+  int *count = getCharCountArray(str);\n+  int i = 0,k = 0;\n+  int index = -1;\n+    for (i = 0; *(str+i);  i++)\n+      {\n+        if (count[*(str+i)] == 1)\n+        {\n+          k++;\n+          index = i;\n+          printf(\"%i non-repeating character is %c and it has %i index\\n\\n\", k,str[index],index);\n+        }\n+      }\n+\n+  free(count);\n+    if (index == -1)\n+    printf(\"Either all characters are repeating or string is empty\");\n+}\n+using namespace std;","path":"main.cpp","position":36,"original_position":36,"commit_id":"3bcf56aa00d082e79eecf1f4a3e4c79bc9c6c6e8","original_commit_id":"3bcf56aa00d082e79eecf1f4a3e4c79bc9c6c6e8","user":{"login":"nechaido","id":17278974,"node_id":"MDQ6VXNlcjE3Mjc4OTc0","avatar_url":"https://avatars2.githubusercontent.com/u/17278974?v=4","gravatar_id":"","url":"https://api.github.com/users/nechaido","html_url":"https://github.com/nechaido","followers_url":"https://api.github.com/users/nechaido/followers","following_url":"https://api.github.com/users/nechaido/following{/other_user}","gists_url":"https://api.github.com/users/nechaido/gists{/gist_id}","starred_url":"https://api.github.com/users/nechaido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nechaido/subscriptions","organizations_url":"https://api.github.com/users/nechaido/orgs","repos_url":"https://api.github.com/users/nechaido/repos","events_url":"https://api.github.com/users/nechaido/events{/privacy}","received_events_url":"https://api.github.com/users/nechaido/received_events","type":"User","site_admin":false},"body":"Это лишнее.","created_at":"2018-12-27T21:13:07Z","updated_at":"2018-12-27T21:13:07Z","html_url":"https://github.com/natasha1237/Labs/pull/1#discussion_r244226142","pull_request_url":"https://api.github.com/repos/natasha1237/Labs/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/natasha1237/Labs/pulls/comments/244226142"},"html":{"href":"https://github.com/natasha1237/Labs/pull/1#discussion_r244226142"},"pull_request":{"href":"https://api.github.com/repos/natasha1237/Labs/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/natasha1237/Labs/pulls/1","id":241209443,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxMjA5NDQz","html_url":"https://github.com/natasha1237/Labs/pull/1","diff_url":"https://github.com/natasha1237/Labs/pull/1.diff","patch_url":"https://github.com/natasha1237/Labs/pull/1.patch","issue_url":"https://api.github.com/repos/natasha1237/Labs/issues/1","number":1,"state":"open","locked":false,"title":"Lab #9","user":{"login":"natasha1237","id":45146473,"node_id":"MDQ6VXNlcjQ1MTQ2NDcz","avatar_url":"https://avatars3.githubusercontent.com/u/45146473?v=4","gravatar_id":"","url":"https://api.github.com/users/natasha1237","html_url":"https://github.com/natasha1237","followers_url":"https://api.github.com/users/natasha1237/followers","following_url":"https://api.github.com/users/natasha1237/following{/other_user}","gists_url":"https://api.github.com/users/natasha1237/gists{/gist_id}","starred_url":"https://api.github.com/users/natasha1237/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasha1237/subscriptions","organizations_url":"https://api.github.com/users/natasha1237/orgs","repos_url":"https://api.github.com/users/natasha1237/repos","events_url":"https://api.github.com/users/natasha1237/events{/privacy}","received_events_url":"https://api.github.com/users/natasha1237/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-27T19:17:13Z","updated_at":"2018-12-27T21:13:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edf0bbe58c64b10e469891dcdef4c44e02e3abcf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/natasha1237/Labs/pulls/1/commits","review_comments_url":"https://api.github.com/repos/natasha1237/Labs/pulls/1/comments","review_comment_url":"https://api.github.com/repos/natasha1237/Labs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/natasha1237/Labs/issues/1/comments","statuses_url":"https://api.github.com/repos/natasha1237/Labs/statuses/3bcf56aa00d082e79eecf1f4a3e4c79bc9c6c6e8","head":{"label":"natasha1237:lab9","ref":"lab9","sha":"3bcf56aa00d082e79eecf1f4a3e4c79bc9c6c6e8","user":{"login":"natasha1237","id":45146473,"node_id":"MDQ6VXNlcjQ1MTQ2NDcz","avatar_url":"https://avatars3.githubusercontent.com/u/45146473?v=4","gravatar_id":"","url":"https://api.github.com/users/natasha1237","html_url":"https://github.com/natasha1237","followers_url":"https://api.github.com/users/natasha1237/followers","following_url":"https://api.github.com/users/natasha1237/following{/other_user}","gists_url":"https://api.github.com/users/natasha1237/gists{/gist_id}","starred_url":"https://api.github.com/users/natasha1237/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasha1237/subscriptions","organizations_url":"https://api.github.com/users/natasha1237/orgs","repos_url":"https://api.github.com/users/natasha1237/repos","events_url":"https://api.github.com/users/natasha1237/events{/privacy}","received_events_url":"https://api.github.com/users/natasha1237/received_events","type":"User","site_admin":false},"repo":{"id":163328266,"node_id":"MDEwOlJlcG9zaXRvcnkxNjMzMjgyNjY=","name":"Labs","full_name":"natasha1237/Labs","private":false,"owner":{"login":"natasha1237","id":45146473,"node_id":"MDQ6VXNlcjQ1MTQ2NDcz","avatar_url":"https://avatars3.githubusercontent.com/u/45146473?v=4","gravatar_id":"","url":"https://api.github.com/users/natasha1237","html_url":"https://github.com/natasha1237","followers_url":"https://api.github.com/users/natasha1237/followers","following_url":"https://api.github.com/users/natasha1237/following{/other_user}","gists_url":"https://api.github.com/users/natasha1237/gists{/gist_id}","starred_url":"https://api.github.com/users/natasha1237/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasha1237/subscriptions","organizations_url":"https://api.github.com/users/natasha1237/orgs","repos_url":"https://api.github.com/users/natasha1237/repos","events_url":"https://api.github.com/users/natasha1237/events{/privacy}","received_events_url":"https://api.github.com/users/natasha1237/received_events","type":"User","site_admin":false},"html_url":"https://github.com/natasha1237/Labs","description":null,"fork":false,"url":"https://api.github.com/repos/natasha1237/Labs","forks_url":"https://api.github.com/repos/natasha1237/Labs/forks","keys_url":"https://api.github.com/repos/natasha1237/Labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/natasha1237/Labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/natasha1237/Labs/teams","hooks_url":"https://api.github.com/repos/natasha1237/Labs/hooks","issue_events_url":"https://api.github.com/repos/natasha1237/Labs/issues/events{/number}","events_url":"https://api.github.com/repos/natasha1237/Labs/events","assignees_url":"https://api.github.com/repos/natasha1237/Labs/assignees{/user}","branches_url":"https://api.github.com/repos/natasha1237/Labs/branches{/branch}","tags_url":"https://api.github.com/repos/natasha1237/Labs/tags","blobs_url":"https://api.github.com/repos/natasha1237/Labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/natasha1237/Labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/natasha1237/Labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/natasha1237/Labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/natasha1237/Labs/statuses/{sha}","languages_url":"https://api.github.com/repos/natasha1237/Labs/languages","stargazers_url":"https://api.github.com/repos/natasha1237/Labs/stargazers","contributors_url":"https://api.github.com/repos/natasha1237/Labs/contributors","subscribers_url":"https://api.github.com/repos/natasha1237/Labs/subscribers","subscription_url":"https://api.github.com/repos/natasha1237/Labs/subscription","commits_url":"https://api.github.com/repos/natasha1237/Labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/natasha1237/Labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/natasha1237/Labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/natasha1237/Labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/natasha1237/Labs/contents/{+path}","compare_url":"https://api.github.com/repos/natasha1237/Labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/natasha1237/Labs/merges","archive_url":"https://api.github.com/repos/natasha1237/Labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/natasha1237/Labs/downloads","issues_url":"https://api.github.com/repos/natasha1237/Labs/issues{/number}","pulls_url":"https://api.github.com/repos/natasha1237/Labs/pulls{/number}","milestones_url":"https://api.github.com/repos/natasha1237/Labs/milestones{/number}","notifications_url":"https://api.github.com/repos/natasha1237/Labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/natasha1237/Labs/labels{/name}","releases_url":"https://api.github.com/repos/natasha1237/Labs/releases{/id}","deployments_url":"https://api.github.com/repos/natasha1237/Labs/deployments","created_at":"2018-12-27T19:14:11Z","updated_at":"2018-12-27T19:14:14Z","pushed_at":"2018-12-27T20:49:41Z","git_url":"git://github.com/natasha1237/Labs.git","ssh_url":"git@github.com:natasha1237/Labs.git","clone_url":"https://github.com/natasha1237/Labs.git","svn_url":"https://github.com/natasha1237/Labs","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"natasha1237:master","ref":"master","sha":"781fed4770b62e114555874be5bcc088e203f624","user":{"login":"natasha1237","id":45146473,"node_id":"MDQ6VXNlcjQ1MTQ2NDcz","avatar_url":"https://avatars3.githubusercontent.com/u/45146473?v=4","gravatar_id":"","url":"https://api.github.com/users/natasha1237","html_url":"https://github.com/natasha1237","followers_url":"https://api.github.com/users/natasha1237/followers","following_url":"https://api.github.com/users/natasha1237/following{/other_user}","gists_url":"https://api.github.com/users/natasha1237/gists{/gist_id}","starred_url":"https://api.github.com/users/natasha1237/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasha1237/subscriptions","organizations_url":"https://api.github.com/users/natasha1237/orgs","repos_url":"https://api.github.com/users/natasha1237/repos","events_url":"https://api.github.com/users/natasha1237/events{/privacy}","received_events_url":"https://api.github.com/users/natasha1237/received_events","type":"User","site_admin":false},"repo":{"id":163328266,"node_id":"MDEwOlJlcG9zaXRvcnkxNjMzMjgyNjY=","name":"Labs","full_name":"natasha1237/Labs","private":false,"owner":{"login":"natasha1237","id":45146473,"node_id":"MDQ6VXNlcjQ1MTQ2NDcz","avatar_url":"https://avatars3.githubusercontent.com/u/45146473?v=4","gravatar_id":"","url":"https://api.github.com/users/natasha1237","html_url":"https://github.com/natasha1237","followers_url":"https://api.github.com/users/natasha1237/followers","following_url":"https://api.github.com/users/natasha1237/following{/other_user}","gists_url":"https://api.github.com/users/natasha1237/gists{/gist_id}","starred_url":"https://api.github.com/users/natasha1237/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasha1237/subscriptions","organizations_url":"https://api.github.com/users/natasha1237/orgs","repos_url":"https://api.github.com/users/natasha1237/repos","events_url":"https://api.github.com/users/natasha1237/events{/privacy}","received_events_url":"https://api.github.com/users/natasha1237/received_events","type":"User","site_admin":false},"html_url":"https://github.com/natasha1237/Labs","description":null,"fork":false,"url":"https://api.github.com/repos/natasha1237/Labs","forks_url":"https://api.github.com/repos/natasha1237/Labs/forks","keys_url":"https://api.github.com/repos/natasha1237/Labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/natasha1237/Labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/natasha1237/Labs/teams","hooks_url":"https://api.github.com/repos/natasha1237/Labs/hooks","issue_events_url":"https://api.github.com/repos/natasha1237/Labs/issues/events{/number}","events_url":"https://api.github.com/repos/natasha1237/Labs/events","assignees_url":"https://api.github.com/repos/natasha1237/Labs/assignees{/user}","branches_url":"https://api.github.com/repos/natasha1237/Labs/branches{/branch}","tags_url":"https://api.github.com/repos/natasha1237/Labs/tags","blobs_url":"https://api.github.com/repos/natasha1237/Labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/natasha1237/Labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/natasha1237/Labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/natasha1237/Labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/natasha1237/Labs/statuses/{sha}","languages_url":"https://api.github.com/repos/natasha1237/Labs/languages","stargazers_url":"https://api.github.com/repos/natasha1237/Labs/stargazers","contributors_url":"https://api.github.com/repos/natasha1237/Labs/contributors","subscribers_url":"https://api.github.com/repos/natasha1237/Labs/subscribers","subscription_url":"https://api.github.com/repos/natasha1237/Labs/subscription","commits_url":"https://api.github.com/repos/natasha1237/Labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/natasha1237/Labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/natasha1237/Labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/natasha1237/Labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/natasha1237/Labs/contents/{+path}","compare_url":"https://api.github.com/repos/natasha1237/Labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/natasha1237/Labs/merges","archive_url":"https://api.github.com/repos/natasha1237/Labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/natasha1237/Labs/downloads","issues_url":"https://api.github.com/repos/natasha1237/Labs/issues{/number}","pulls_url":"https://api.github.com/repos/natasha1237/Labs/pulls{/number}","milestones_url":"https://api.github.com/repos/natasha1237/Labs/milestones{/number}","notifications_url":"https://api.github.com/repos/natasha1237/Labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/natasha1237/Labs/labels{/name}","releases_url":"https://api.github.com/repos/natasha1237/Labs/releases{/id}","deployments_url":"https://api.github.com/repos/natasha1237/Labs/deployments","created_at":"2018-12-27T19:14:11Z","updated_at":"2018-12-27T19:14:14Z","pushed_at":"2018-12-27T20:49:41Z","git_url":"git://github.com/natasha1237/Labs.git","ssh_url":"git@github.com:natasha1237/Labs.git","clone_url":"https://github.com/natasha1237/Labs.git","svn_url":"https://github.com/natasha1237/Labs","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/natasha1237/Labs/pulls/1"},"html":{"href":"https://github.com/natasha1237/Labs/pull/1"},"issue":{"href":"https://api.github.com/repos/natasha1237/Labs/issues/1"},"comments":{"href":"https://api.github.com/repos/natasha1237/Labs/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/natasha1237/Labs/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/natasha1237/Labs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/natasha1237/Labs/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/natasha1237/Labs/statuses/3bcf56aa00d082e79eecf1f4a3e4c79bc9c6c6e8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"nechaido"}}