C++ wrong solution but pass.


  • 0
    S
    class Solution {
    public:
    	string encode(string longUrl) {		
    		ret = longUrl;
    		return "";
    	}
    	string decode(string shortUrl) {
    		return ret;
    	}
    	string ret;
    };
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.