535. Encode and Decode TinyURL

preview_player
Показать описание


Connect With Me:

#dsa #EncodeandDecodeTinyURL#placements
#LeetCode #Leetcode763 #DataStructures
#LinkedList #Interview_Preparation #DSA #Interview #Practice #gfg #Leetcode #Medium #LinkedList #Algorithm #DataStructure #CPP #Preparation #NG #nickode #CookCodeTravel #CCT #programmer #aprilleetcodechallenge #datastructures #challenge #Codenewbie #leetcode #leetcodechallenge
Рекомендации по теме
Комментарии
Автор

Thank u q ko dekh kr ye lga ki same rkhna us url k corresspond

ritikashishodia
Автор

1 general suggestion, use writing pad for explaination of problem on white board .

pratyushpandey
Автор

I have tried this and guess what it is right:))))



class Solution {
public:

// Encodes a URL to a shortened URL.
string encode(string longUrl) {
return longUrl;
}

// Decodes a shortened URL to its original URL.
string decode(string shortUrl) {
return shortUrl;
}
};

deepakkumarkhatri