diff --git a/src/data/problemData.ts b/src/data/problemData.ts index 9fb51c741..48e1d593b 100644 --- a/src/data/problemData.ts +++ b/src/data/problemData.ts @@ -1394,6 +1394,17 @@ class Solution: return result `, }, + timeComplexity: { + cpp: "O(n)", + java: "O(n)", + python: "O(n)", + }, + spaceComplexity: { + cpp: "O(1)", + java: "O(1)", + python: "O(1)", + }, + }, hasCycle: {