MIMujahidul islaminmujahid2923.hashnode.dev·Nov 22, 2023 · 2 min readLinked 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...00
MIMujahidul islaminmujahid2923.hashnode.dev·Aug 25, 2023 · 25 min readBasic 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...00
MIMujahidul islaminmujahid2923.hashnode.dev·Aug 23, 2023 · 5 min readCSRF 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...00
MIMujahidul islaminmujahid2923.hashnode.dev·Jul 10, 2023 · 4 min readLeetcode: 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...00