From 3ae4ce72c76365588dfd3e257adc7033c502a7f0 Mon Sep 17 00:00:00 2001 From: Varstak Date: Wed, 15 Nov 2023 14:12:10 +0800 Subject: [PATCH] Changed sample questions --- backend/mongodb-database/src/sampleQuestions/qn1.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn11.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn12.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn14.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn15.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn17.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn18.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn2.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn4.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn5.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn8.ts | 2 +- backend/mongodb-database/src/sampleQuestions/qn9.ts | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/backend/mongodb-database/src/sampleQuestions/qn1.ts b/backend/mongodb-database/src/sampleQuestions/qn1.ts index 8fc5c54..c526465 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn1.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn1.ts @@ -23,7 +23,7 @@ Constraints: - s[i] is a printable ascii character. `, difficulty: DIFFICULTY.EASY, - category: "Strings, Algorithms", + category: "Strings", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn11.ts b/backend/mongodb-database/src/sampleQuestions/qn11.ts index 5ebca71..bc8e92b 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn11.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn11.ts @@ -29,7 +29,7 @@ Constraints: - text1 and text2 consist of only lowercase English characters `, difficulty: DIFFICULTY.MEDIUM, - category: "Strings, Algorithms", + category: "Strings", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn12.ts b/backend/mongodb-database/src/sampleQuestions/qn12.ts index 72585dc..349c2c3 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn12.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn12.ts @@ -32,7 +32,7 @@ Constraints: - -1000 <= matrix[i][j] <= 1000 `, difficulty: DIFFICULTY.MEDIUM, - category: "Arrays, Algorithms", + category: "Arrays", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn14.ts b/backend/mongodb-database/src/sampleQuestions/qn14.ts index 5f5af04..d891c36 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn14.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn14.ts @@ -34,7 +34,7 @@ Constraints: `, difficulty: DIFFICULTY.MEDIUM, - category: "Data Structures, Algorithms", + category: "Data Structures", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn15.ts b/backend/mongodb-database/src/sampleQuestions/qn15.ts index aa0072c..87c7c5f 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn15.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn15.ts @@ -31,7 +31,7 @@ Constraints: - 1 <= k <= nums.length `, difficulty: DIFFICULTY.HARD, - category: "Arrays, Algorithms", + category: "Arrays", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn17.ts b/backend/mongodb-database/src/sampleQuestions/qn17.ts index e2e2208..096b02e 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn17.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn17.ts @@ -32,7 +32,7 @@ Constraints: - -1000 <= Node.val <= 1000 `, difficulty: DIFFICULTY.HARD, - category: "Data Structures, Algorithms", + category: "Data Structures", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn18.ts b/backend/mongodb-database/src/sampleQuestions/qn18.ts index de63cf6..e350312 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn18.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn18.ts @@ -31,7 +31,7 @@ Constraints: - p contains only lowercase English letters, '?' or '*'. `, difficulty: DIFFICULTY.HARD, - category: "Strings, Algorithms", + category: "Strings", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn2.ts b/backend/mongodb-database/src/sampleQuestions/qn2.ts index 5b3f131..1f50aaa 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn2.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn2.ts @@ -46,7 +46,7 @@ Constraints: Follow up: Can you solve it using O(1) (i.e. constant) memory? `, difficulty: DIFFICULTY.EASY, - category: "Data Structures, Algorithms", + category: "Data Structures", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn4.ts b/backend/mongodb-database/src/sampleQuestions/qn4.ts index 3e13d1c..af18457 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn4.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn4.ts @@ -17,7 +17,7 @@ Constraints: - Each string does not contain leading zeros except for the zero itself `, difficulty: DIFFICULTY.EASY, - category: "Bit Manipulation, Algorithms", + category: "Bit Manipulation", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn5.ts b/backend/mongodb-database/src/sampleQuestions/qn5.ts index c967142..3ed05cf 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn5.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn5.ts @@ -27,7 +27,7 @@ Constraints: - 0 <= n <= 30 `, difficulty: DIFFICULTY.EASY, - category: "Recursion, Algorithms", + category: "Recursion", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn8.ts b/backend/mongodb-database/src/sampleQuestions/qn8.ts index 3d89327..ed84e52 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn8.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn8.ts @@ -22,7 +22,7 @@ Constraints: - s[i] is either 'A', 'C', 'G', or 'T'. `, difficulty: DIFFICULTY.MEDIUM, - category: "Algorithms, Bit Manipulation", + category: "Bit Manipulation", templates: [ { language: LANGUAGE.PYTHON, diff --git a/backend/mongodb-database/src/sampleQuestions/qn9.ts b/backend/mongodb-database/src/sampleQuestions/qn9.ts index 8e6527e..5b79d0d 100644 --- a/backend/mongodb-database/src/sampleQuestions/qn9.ts +++ b/backend/mongodb-database/src/sampleQuestions/qn9.ts @@ -31,7 +31,7 @@ Constraints: - All the pairs prerequisites[i] are unique. `, difficulty: DIFFICULTY.MEDIUM, - category: "Data Structures, Algorithms", + category: "Data Structures", templates: [ { language: LANGUAGE.PYTHON,