Algorithms to Make List Values Equal March 4, 2021 algorithms, c / c++ No Comments You are given a list of integers nums. Consider an operation where we select some subset of integers in the list and increment all of them by one. Return … [Continue Reading...]
How to Compute the Number of Equivalent Domino Pairs? July 21, 2019 algorithms, brute force, c / c++, data structure No Comments Given a list of dominoes, dominoes = is equivalent to dominoes = if and only if either (a==c and b==d), or (a==d and b==c) – that is, one domino … [Continue Reading...]