How to Compare Version Numbers in C++? April 12, 2016 algorithms, c / c++, data structure, leetcode online judge No Comments Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assume that the version strings … [Continue Reading...]