python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Global array won't update, keeps giving garbage values when passed by reference
It's supposed to call a function through a thread for merge sort- but for some reason, it doesn't update the global array when I try to output it later through the main() function. So i tried passing ...
MR DZ
Votes: 0
Answers: 2
Difference between using else if and just if conditions
I was creating a merge sort algorithm and came across an issue. After like 30 minutes I replaced my if statements with else if, and this fixed my problem. Can anyone explain to me why this is? Also, w...
iamxaji
Votes: 0
Answers: 1
Sort merge two piles in C
I'm learning C and encountered with this issue: So I have a code that sorts 2 arrays (a and b) into a new array c. That should be easy enough, but the code isn't working and I'd like to ask for help, ...

Nicolás Rivera
Votes: 0
Answers: 0
Remove duplicate in merge sort of linked lists
I have made a method that merge sorts two linked lists in descending order. I am now having difficulty in removing duplicates. I have seen some remove duplicate methods but I want to implement in with...
Dae
Votes: 0
Answers: 1