Lonely Integer

  • + 0 comments

    ** int lonelyinteger(vector a) { map freq; for(int i=0;i for(auto i:freq) { if(i.second == 1) { return (i.first); }

    }
    return -1;
    

    } **