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...Nov 22, 2023 · 2 min readmujahid2923.hashnode.dev
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...Aug 25, 2023 · 25 min readmujahid2923.hashnode.dev
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...Aug 23, 2023 · 5 min readmujahid2923.hashnode.dev
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...Jul 10, 2023 · 4 min readmujahid2923.hashnode.dev