CS (전산학)/Data Structure and Algorithm2 2024-06-02: Leetcode Daily Challenge 344. Reverse String Level: easyRequirements:Write a function that reverses a string. The Input String is given as an array of charater `s`. You must do this by modifying the input array **in-place** with `O(1)` extra memory.The First IntuitionThe first intuition would be "iterate the given array from the end to the beginning and store each element in the new array. Finally, the new array will be assigned to the arr.. 2024. 6. 2. 2024-05-06: LC 237. Delete Node in a Linked List Difficulty: Middle There is a singly-linked list head and we want to delete a node node in it.You are given the node to be deleted node. You will not be given access to the first node of head.All the values of the linked list are unique, and it is guaranteed that the given node node is not the last node in the linked list.Delete the given node. Note that by deleting the node, we do not mean remo.. 2024. 5. 6. 이전 1 다음