Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6cdf57c

Browse files
db/feat: Use LintCode instead of LeetCode in locked problems
1 parent 2ee487c commit 6cdf57c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎db/problems.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export function getProblemOfDay() {
88
currentDate.toLocaleString("en-US", { timeZone: "Africa/Cairo" });
99
return (
1010
Math.floor(
11-
(currentDate.getTime() - new Date(`${UserDb.get().stream.startDate}T00:00:00`).getTime()) /
11+
(currentDate.getTime() -
12+
new Date(`${UserDb.get().stream.startDate}T00:00:00`).getTime()) /
1213
(1000 * 3600 * 24)
1314
) % problems.length
1415
);
@@ -49,17 +50,22 @@ export const problems = [
4950
tags: ["Math", "Binary Search"],
5051
},
5152
{
52-
id: "L243",
53+
id: "N924",
5354
title: "Shortest Word Distance",
5455
difficulty: Difficulty.EASY,
5556
patterns: [patterns.Warmup],
56-
url: "https://leetcode.ca/all/243.html",
57+
url: "https://www.lintcode.com/problem/924",
5758
solutions: [
5859
{
5960
title: "Solution: Shortest Word Distance",
6061
site: {},
6162
url: "https://aaronice.gitbook.io/lintcode/hash-table/shortest-word-distance",
6263
},
64+
{
65+
title: "Shortest Word Distance - LeetCodeCa",
66+
site: {},
67+
url: "https://leetcode.ca/all/243.html",
68+
},
6369
],
6470
companies: [
6571
"Amazon",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /