Codechef: April Long Challenge | Valid Pair | SOCKS | Solution

View on Codechef Chef has three socks in his drawer. Each sock has one of 1010 possible colors, which are represented by integers between 11 and 1010. Specifically, the colors of the socks are AA, BB, and CC. Chef has to wear two socks which have the same colour. Help Chef find out if that is possible or not. Input The first and …

Codechef: April Long Challenge | Valid Pair | SOCKS | Solution Read More »