diff --git a/editor.html b/editor.html index 02db7f1b..fcd6672d 100644 --- a/editor.html +++ b/editor.html @@ -1,20 +1,266 @@ - - - Editor - CodeClip - + + + Code Editor Layout + + + + + - -
-

Editor Page

-

This is another page to verify that theme preference persists across pages.

-
+ +
+ +
+
+ + +
+

Challenge Description

+
+

Welcome to the coding challenge! Your task is to implement a function that reverses a given string. Consider edge cases such as empty strings or strings with special characters.

+

Requirements:

+
    +
  • The function should accept one argument: a string.
  • +
  • It should return the reversed string.
  • +
  • The solution must be efficient (e.g., O(n) time complexity).
  • +
+

Example:

+

+function reverseString(str) {
+  // Your code here
+}
+
+// Example usage:
+// reverseString("hello") should return "olleh"
+                
+

Good luck! If you encounter any issues, refer to the documentation or seek hints.

+
+
+ + +
+ + +
+

Code Editor

+ + +
+ + +
+ + +
+

Output / Test Results

+
+

Click "Run Code" to see output here.

+

+// Example Test Case:
+// Input: "hello"
+// Expected Output: "olleh"
+// Actual Output: (will appear here)
+
+// Test Case 2:
+// Input: ""
+// Expected Output: ""
+// Actual Output: (will appear here)
+                
+
+ +
+
+ + + + + // Mouse events for grabber 2 + grabber2.addEventListener('mousedown', (e) => { + handleResize(e, grabber2); + }); + grabber2.addEventListener('touchstart', (e) => { + handleResize(e, grabber2); + }); + }); + diff --git a/index.html b/index.html index 9ea65817..2288073d 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,7 @@