See More

class Solution { public: int compareVersion(string v1, string v2) { int i1=0,i2=0; while(i1n2) return 1; else if (n1