Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update solution.discuss.js
Now LeetCode officially moved to a new UI and the path of community solutions has been moved from  
`https://leetcode.com/problems/trapping-rain-water-ii/discuss/89473/` to  
`https://leetcode.com/problems/trapping-rain-water-ii/solutions/89473/`

This PR reflects the change.
  • Loading branch information
PabloLION authored Dec 6, 2022
commit 20d1bc84e3568f74825810edfae14d54e4e3bf85
2 changes: 1 addition & 1 deletion lib/plugins/solution.discuss.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var plugin = new Plugin(200, 'solution.discuss', '2019.02.03',
'Plugin to fetch most voted solution in discussions.');

var URL_DISCUSSES = 'https://leetcode.com/graphql';
var URL_DISCUSS = 'https://leetcode.com/problems/$slug/discuss/$id';
var URL_DISCUSS = 'https://leetcode.com/problems/$slug/solutions/$id';

function getSolution(problem, lang, cb) {
if (!problem) return cb();
Expand Down