Skip to content

Commit 9541573

Browse files
Merge pull request #16 from Sachinchaurasiya360/feature/ai-job-match
added judge 0
2 parents 950d6c3 + 51d6270 commit 9541573

20 files changed

Lines changed: 1398 additions & 379 deletions

client/package-lock.json

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13+
"@codemirror/lang-cpp": "^6.0.3",
1314
"@codemirror/lang-css": "^6.3.1",
1415
"@codemirror/lang-html": "^6.4.11",
16+
"@codemirror/lang-java": "^6.0.2",
1517
"@codemirror/lang-javascript": "^6.2.5",
1618
"@codemirror/lang-python": "^6.2.1",
1719
"@codemirror/lang-sql": "^6.10.0",

client/src/lib/query-keys.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,6 @@ export const queryKeys = {
198198
patterns: () => ["dsa", "patterns"] as const,
199199
pattern: (name: string, page?: number) => ["dsa", "pattern", name, page] as const,
200200
sheets: () => ["dsa", "sheets"] as const,
201+
submissions: (problemId: number) => ["dsa", "submissions", problemId] as const,
201202
},
202203
};

client/src/lib/types.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ export interface DsaTopic {
661661
solvedCount: number;
662662
}
663663

664+
export interface DsaTopicsResponse {
665+
uniqueProblems: number;
666+
topics: DsaTopic[];
667+
}
668+
664669
export interface DsaProblem {
665670
id: number;
666671
title: string;
@@ -790,6 +795,43 @@ export interface DsaPaginatedProblems {
790795
page: number;
791796
}
792797

798+
// DSA Code Execution
799+
export type DsaLanguage = "python" | "cpp" | "java";
800+
801+
export interface DsaTestCaseResult {
802+
input: string;
803+
expected: string;
804+
actual: string;
805+
passed: boolean;
806+
label: string | null;
807+
timeMs: number;
808+
memoryKb: number;
809+
statusId: number;
810+
statusDescription: string;
811+
stderr: string | null;
812+
compileOutput: string | null;
813+
}
814+
815+
export interface DsaExecutionResult {
816+
passed: number;
817+
total: number;
818+
allPassed: boolean;
819+
results: DsaTestCaseResult[];
820+
submissionId: number;
821+
}
822+
823+
export interface DsaSubmissionSummary {
824+
id: number;
825+
language: DsaLanguage;
826+
code: string;
827+
passed: number;
828+
total: number;
829+
allPassed: boolean;
830+
timeMs: number | null;
831+
memoryKb: number | null;
832+
createdAt: string;
833+
}
834+
793835
// Aptitude Practice
794836
export interface AptitudeCategory {
795837
id: number;

0 commit comments

Comments
 (0)