We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sales by Match
Sales by Match
Sort by
recency
|
5921 Discussions
|
Please Login in order to post a comment
Simple 1) Fill array 2) Add Distinct elements in hashmap from array as below Hashmap contain key as element and value as count of elements in the array 3) then divide count of elements by 2 and print
import java.util.*;
public class SocksPair {
}
Hello! Here's my Java solution for the challenge.
https://github.com/eduardocintra/hacker-rank-solutions/blob/master/src/br/com/eduardocintra/easy/salesbymatch/SalesByMatch.java