{"action":"created","comment":{"url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/comments/25997057","id":25997057,"diff_hunk":"@@ -0,0 +1,91 @@\n+(* Tasks 14-19\n+   Time: expectation 3h\n+         reality 4h \n+       Kuzmina Elizaveta*)\n+          \n+type Tree<'A> = Nil | T of Tree<'A> * 'A * Tree<'A>\n+let rec insert x t =\n+  match t with\n+  | Nil -> T (Nil, x, Nil)\n+  | T (L, a, R) -> if x < a then T (insert x L, a, R) \n+                   elif x = a then T (L,a , R)\n+                   else T (L, a, insert x R)\n+let rec bigOne t =\n+  match t with\n+  | Nil -> 0\n+  | T (L, a, R) -> if R = Nil then a\n+                   else bigOne R                    \n+let rec delete x t =\n+  match t with \n+  | Nil -> Nil\n+  | T (L, a, R) -> if x < a then T (delete x L, a, R)\n+                   elif x > a then T (L, a, delete x R)\n+                        else match L, R with\n+                             | Nil, Nil -> Nil\n+                             | Nil, T1-> T1 \n+                             | T1, Nil -> T1\n+                             | T1, T (l, b, r) -> if l = Nil then T (T1, b, r)\n+                                                   else T (delete (bigOne T1) T1, bigOne T1, R)\n+let rec printLCR t =\n+  match t with\n+  | Nil -> printf \"\"\n+  | T (L, a, R) -> printLCR L\n+                   printf \"%A \" a\n+                   printLCR R \n+let rec printLRC t =\n+  match t with\n+  | Nil -> printf \"\"\n+  | T (L, a, R) -> printLRC L\n+                   printLRC R\n+                   printf \"%A \" a \n+let rec printCLR t =\n+  match t with\n+  | Nil -> printf \"\"\n+  | T (L, a, R) -> printf \"%A \" a \n+                   printCLR L\n+                   printCLR R\n+let rec mapTree f t =\n+  match t with \n+  | Nil -> Nil\n+  | T (L, a, R) -> T (mapTree f L, f a, mapTree f R)\n+let rec foldTree f a t =\n+  match t with \n+  | Nil -> a\n+  | T (L, b, R) -> foldTree f (foldTree f (f a b) L) R \n+let sumTree t = foldTree (fun x y -> x + y) 0 t\n+let minTree t = ","path":"tasks14.fs","position":56,"original_position":56,"commit_id":"8083c328caac9e4126a426ee50364c018bbdc9d2","original_commit_id":"8083c328caac9e4126a426ee50364c018bbdc9d2","user":{"login":"anlun","id":711192,"avatar_url":"https://avatars.githubusercontent.com/u/711192?v=3","gravatar_id":"","url":"https://api.github.com/users/anlun","html_url":"https://github.com/anlun","followers_url":"https://api.github.com/users/anlun/followers","following_url":"https://api.github.com/users/anlun/following{/other_user}","gists_url":"https://api.github.com/users/anlun/gists{/gist_id}","starred_url":"https://api.github.com/users/anlun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anlun/subscriptions","organizations_url":"https://api.github.com/users/anlun/orgs","repos_url":"https://api.github.com/users/anlun/repos","events_url":"https://api.github.com/users/anlun/events{/privacy}","received_events_url":"https://api.github.com/users/anlun/received_events","type":"User","site_admin":false},"body":"minTree не должна ничего печатать, а должна возвращать Option-тип","created_at":"2015-03-07T16:05:55Z","updated_at":"2015-03-07T16:05:55Z","html_url":"https://github.com/elizakuz/2nd-semester/pull/1#discussion_r25997057","pull_request_url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/comments/25997057"},"html":{"href":"https://github.com/elizakuz/2nd-semester/pull/1#discussion_r25997057"},"pull_request":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1","id":30700935,"html_url":"https://github.com/elizakuz/2nd-semester/pull/1","diff_url":"https://github.com/elizakuz/2nd-semester/pull/1.diff","patch_url":"https://github.com/elizakuz/2nd-semester/pull/1.patch","issue_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues/1","number":1,"state":"open","locked":false,"title":"Hw02","user":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"body":"Homework 2","created_at":"2015-03-07T10:29:46Z","updated_at":"2015-03-07T16:05:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db56d0905b93656723ea7780832f125fa51f724a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1/commits","review_comments_url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1/comments","review_comment_url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues/1/comments","statuses_url":"https://api.github.com/repos/elizakuz/2nd-semester/statuses/8083c328caac9e4126a426ee50364c018bbdc9d2","head":{"label":"elizakuz:hw02","ref":"hw02","sha":"8083c328caac9e4126a426ee50364c018bbdc9d2","user":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"repo":{"id":31088089,"name":"2nd-semester","full_name":"elizakuz/2nd-semester","owner":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elizakuz/2nd-semester","description":"F#","fork":false,"url":"https://api.github.com/repos/elizakuz/2nd-semester","forks_url":"https://api.github.com/repos/elizakuz/2nd-semester/forks","keys_url":"https://api.github.com/repos/elizakuz/2nd-semester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elizakuz/2nd-semester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elizakuz/2nd-semester/teams","hooks_url":"https://api.github.com/repos/elizakuz/2nd-semester/hooks","issue_events_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues/events{/number}","events_url":"https://api.github.com/repos/elizakuz/2nd-semester/events","assignees_url":"https://api.github.com/repos/elizakuz/2nd-semester/assignees{/user}","branches_url":"https://api.github.com/repos/elizakuz/2nd-semester/branches{/branch}","tags_url":"https://api.github.com/repos/elizakuz/2nd-semester/tags","blobs_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/refs{/sha}","trees_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elizakuz/2nd-semester/statuses/{sha}","languages_url":"https://api.github.com/repos/elizakuz/2nd-semester/languages","stargazers_url":"https://api.github.com/repos/elizakuz/2nd-semester/stargazers","contributors_url":"https://api.github.com/repos/elizakuz/2nd-semester/contributors","subscribers_url":"https://api.github.com/repos/elizakuz/2nd-semester/subscribers","subscription_url":"https://api.github.com/repos/elizakuz/2nd-semester/subscription","commits_url":"https://api.github.com/repos/elizakuz/2nd-semester/commits{/sha}","git_commits_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/commits{/sha}","comments_url":"https://api.github.com/repos/elizakuz/2nd-semester/comments{/number}","issue_comment_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues/comments{/number}","contents_url":"https://api.github.com/repos/elizakuz/2nd-semester/contents/{+path}","compare_url":"https://api.github.com/repos/elizakuz/2nd-semester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elizakuz/2nd-semester/merges","archive_url":"https://api.github.com/repos/elizakuz/2nd-semester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elizakuz/2nd-semester/downloads","issues_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues{/number}","pulls_url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls{/number}","milestones_url":"https://api.github.com/repos/elizakuz/2nd-semester/milestones{/number}","notifications_url":"https://api.github.com/repos/elizakuz/2nd-semester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elizakuz/2nd-semester/labels{/name}","releases_url":"https://api.github.com/repos/elizakuz/2nd-semester/releases{/id}","created_at":"2015-02-20T22:24:16Z","updated_at":"2015-03-03T17:23:02Z","pushed_at":"2015-03-07T08:34:10Z","git_url":"git://github.com/elizakuz/2nd-semester.git","ssh_url":"git@github.com:elizakuz/2nd-semester.git","clone_url":"https://github.com/elizakuz/2nd-semester.git","svn_url":"https://github.com/elizakuz/2nd-semester","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"elizakuz:master","ref":"master","sha":"dcfe7a9432f84d4117d371282c2f89edda19313f","user":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"repo":{"id":31088089,"name":"2nd-semester","full_name":"elizakuz/2nd-semester","owner":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elizakuz/2nd-semester","description":"F#","fork":false,"url":"https://api.github.com/repos/elizakuz/2nd-semester","forks_url":"https://api.github.com/repos/elizakuz/2nd-semester/forks","keys_url":"https://api.github.com/repos/elizakuz/2nd-semester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elizakuz/2nd-semester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elizakuz/2nd-semester/teams","hooks_url":"https://api.github.com/repos/elizakuz/2nd-semester/hooks","issue_events_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues/events{/number}","events_url":"https://api.github.com/repos/elizakuz/2nd-semester/events","assignees_url":"https://api.github.com/repos/elizakuz/2nd-semester/assignees{/user}","branches_url":"https://api.github.com/repos/elizakuz/2nd-semester/branches{/branch}","tags_url":"https://api.github.com/repos/elizakuz/2nd-semester/tags","blobs_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/refs{/sha}","trees_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elizakuz/2nd-semester/statuses/{sha}","languages_url":"https://api.github.com/repos/elizakuz/2nd-semester/languages","stargazers_url":"https://api.github.com/repos/elizakuz/2nd-semester/stargazers","contributors_url":"https://api.github.com/repos/elizakuz/2nd-semester/contributors","subscribers_url":"https://api.github.com/repos/elizakuz/2nd-semester/subscribers","subscription_url":"https://api.github.com/repos/elizakuz/2nd-semester/subscription","commits_url":"https://api.github.com/repos/elizakuz/2nd-semester/commits{/sha}","git_commits_url":"https://api.github.com/repos/elizakuz/2nd-semester/git/commits{/sha}","comments_url":"https://api.github.com/repos/elizakuz/2nd-semester/comments{/number}","issue_comment_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues/comments{/number}","contents_url":"https://api.github.com/repos/elizakuz/2nd-semester/contents/{+path}","compare_url":"https://api.github.com/repos/elizakuz/2nd-semester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elizakuz/2nd-semester/merges","archive_url":"https://api.github.com/repos/elizakuz/2nd-semester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elizakuz/2nd-semester/downloads","issues_url":"https://api.github.com/repos/elizakuz/2nd-semester/issues{/number}","pulls_url":"https://api.github.com/repos/elizakuz/2nd-semester/pulls{/number}","milestones_url":"https://api.github.com/repos/elizakuz/2nd-semester/milestones{/number}","notifications_url":"https://api.github.com/repos/elizakuz/2nd-semester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elizakuz/2nd-semester/labels{/name}","releases_url":"https://api.github.com/repos/elizakuz/2nd-semester/releases{/id}","created_at":"2015-02-20T22:24:16Z","updated_at":"2015-03-03T17:23:02Z","pushed_at":"2015-03-07T08:34:10Z","git_url":"git://github.com/elizakuz/2nd-semester.git","ssh_url":"git@github.com:elizakuz/2nd-semester.git","clone_url":"https://github.com/elizakuz/2nd-semester.git","svn_url":"https://github.com/elizakuz/2nd-semester","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1"},"html":{"href":"https://github.com/elizakuz/2nd-semester/pull/1"},"issue":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/issues/1"},"comments":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/elizakuz/2nd-semester/statuses/8083c328caac9e4126a426ee50364c018bbdc9d2"}}}}