-
Notifications
You must be signed in to change notification settings - Fork 382
Closed
Labels
LCUSduplicateThis issue or pull request already existsThis issue or pull request already existsproblemwatchlist
Description
Your LeetCode username
vibecoder
Category of the bug
- Question
- Solution
- Language
- Missing Test Cases
Description of the bug
The solution to the https://leetcode.com/problems/encode-and-decode-tinyurl/ that got accepted was a simple return of the function parameter.
This should not be allowed as part of learning exercise and the question should be modified to stop encouraging submissions like these.
Code you used for Submit/Run operation
string encode(string longUrl) {
return longUrl;
}
// Decodes a shortened URL to its original URL.
string decode(string shortUrl) {
return shortUrl;
}
Language used for code
C++
Expected behavior
Screenshots
Additional context
softartdev
Metadata
Metadata
Assignees
Labels
LCUSduplicateThis issue or pull request already existsThis issue or pull request already existsproblemwatchlist