Challenge 13 - Smallest Difference between Ints Image Challenge 13 - Smallest Difference between Ints

👋 Welcome Gophers! In this challenge, you are tasked with finding the smallest difference between two slices of int values.

Example: Let’s say I have 2 int arrays; [1, 2] and [4, 5]. The function should return the smallest difference which would be the difference between 2 and 4.

See the Solution

Feel free to have a look at the forum discussion thread for this challenge and contribute with your own solutions here - Challenge 13 - Smallest Difference

Further Reading:

If you enjoyed this challenge, you may also enjoy some of the other challenges on this site:


Other Challenges