Linked ListReorder List You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on the following form: L0 → Ln → L1 → Ln - 1 → L2 → Ln - 2 → … You may not modify the values in the list's...2 min read·mujahid2923.hashnode.devNov 22, 2023
Basic Ruby-o-Rails ( All in One )Ruby on Rails, often simply referred to as Rails, is a popular open-source web application framework written in the Ruby programming language. It follows the Model-View-Controller (MVC) architectural pattern and emphasizes convention over configurati...25 min read·mujahid2923.hashnode.devAug 25, 2023
CSRF Attack & It's Prevention in Rails/DjangoCross-Site Request Forgery (CSRF) is a type of web security vulnerability where an attacker tricks a user into unknowingly making an unwanted and potentially harmful request to a web application on which the user is authenticated. This occurs because...5 min read·mujahid2923.hashnode.devAug 23, 2023
Leetcode: Cousins in Binary TreeGiven the root of a binary tree with unique values and the values of two different nodes of the tree x and y, return true if the nodes corresponding to the values x and y in the tree are cousins*, or false otherwise.* Two nodes of a binary tree are c...4 min read·mujahid2923.hashnode.devJul 10, 2023