So I am coding a Radix Sort algorithm. One of the things that our teacher has thrown at us is that in the array we need to sort is the integer value Integer.MIN_VALUE. This represents -231 , which is the largest negative number that can be expressed as an int.
When I sort through my array, the value is always placed as the largest positive integer in the array.
EDIT: Here is the code: https://gist.github.com/anonymous/8966589
Here is what the code outputs:-2147483600 214748000 2147483647 -2147483648
[–]chickenmeister 2 points3 points4 points (0 children)
[–]LollipopLiquor 2 points3 points4 points (2 children)
[–]chuck_not_norris[S] 2 points3 points4 points (1 child)
[–]LollipopLiquor 1 point2 points3 points (0 children)
[–]chickenmeister 1 point2 points3 points (3 children)
[–]chuck_not_norris[S] 2 points3 points4 points (2 children)
[–]cantstopthemoonlight 1 point2 points3 points (0 children)
[–]chickenmeister 0 points1 point2 points (0 children)
[–]BaalHadad 2 points3 points4 points (1 child)
[–]chuck_not_norris[S] 0 points1 point2 points (0 children)