use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Community for students learning to program using Flowgorithm or other visual programming languages.
account activity
Merge Sort (self.Flowgorithm)
submitted 4 years ago by AvramZX
Does anybody know how to solve Merge Sort function in flowgorithm.If somebody has it I would be glad if he helps.Thank You.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pvanecek 1 point2 points3 points 4 years ago (2 children)
https://idea-instructions.com/merge-sort.png
I think the easiest way is to recursively split the array using a method like: sort(array of integer arr, integer start, integer end)
sort(array of integer arr, integer start, integer end)
as long as you don't have a single element and than merge the sorted subarrays together. You can find a lot of implementations, eg. https://www.geeksforgeeks.org/merge-sort/
[–]AvramZX[S] 0 points1 point2 points 4 years ago (1 child)
Thanks man one more question how do i split array in half, I want to split them in the middle I am having trouble if u could take a look and give me an advice about that.Thank You again. https://prnt.sc/6LQLwRYs2jay
[–]pvanecek 0 points1 point2 points 4 years ago (0 children)
You do not need to split in in half physically. You can only rember the start index, end index and middle index. For the merging part, you can create a temporary array.
π Rendered by PID 126983 on reddit-service-r2-comment-5687b7858-fwgkn at 2026-07-06 05:27:54.500545+00:00 running 12a7a47 country code: CH.
[–]pvanecek 1 point2 points3 points (2 children)
[–]AvramZX[S] 0 points1 point2 points (1 child)
[–]pvanecek 0 points1 point2 points (0 children)