SSumanainsumana.hashnode.dev路Jul 24, 2023 路 2 min read馃摑Todo Form Component in ReactIn this tutorial, we'll create a Todo Form component in React that allows users to input and submit their todo tasks along with date, start time, end time, and category. We'll also fetch the list of available categories from the server using an API c...00
SSumanainsumana.hashnode.dev路Jul 17, 2023 路 4 min readUnderstanding React Component Lifecycle PhasesReact components go through different lifecycle phases during their existence, which allows you to perform specific actions at various points. In this article, we'll explore the Mounting, Updating, and Unmounting phases, and how they relate to each o...00
SSumanainsumana.hashnode.dev路Mar 7, 2023 路 2 min read136. Single NumberGiven a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only constant extra space. Example 1: Input: nums = [2,2,1] Output: 1 ...00
SSumanainsumana.hashnode.dev路Feb 24, 2023 路 4 min read20. Valid ParenthesesThe function isValid takes a string s as input and checks if it contains a valid set of parentheses, brackets, and curly braces. Here's a step-by-step visualization of how the function works: Declare an empty array arr to store opening parentheses, ...00
SSumanainsumana.hashnode.dev路Feb 20, 2023 路 2 min read206. Reverse Linked List/** * Definition for singly-linked list. * function ListNode(val, next) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } */ /** * @param {ListNode} head * @return {ListNode} */ var reverse...00