leetcode

Tree ( DSA – 8 )

Tree ( DSA – 8 )

Tree is a hierarchical data structure that consists of nodes connected by edges. It is a non-linear structure, which means that unlike arrays, linked lists, stacks, or queues, elements are not arranged in a sequential manner. Basic Concepts: Root:The topmost node in the tree. There is exactly one root node in a tree.Nodes: Basic units of a tree containing data and references to other nodes.Edges: Links between nodes, showing the relationship from parent to child.Parent: A node that has one or more child nodes.Child: A node that has a parent node.Leaf/Terminal node: A node that does not have any children.Subtree:…
Read More
Write a test function while learning javascript

Write a test function while learning javascript

Objects everywhere Well, you've probably heard before about objects in JavaScript and how they are important in order to understand the language. Objects make JS extremely readable and useful because of its model "key":"value". But the thing I want to stand out is that the "value" section accepts not only a simple string, rather another object, that in turn, may be another object and so on. For instance: const character = { name:"Arthur Morgan", age:24, face: { hairSize:5, eyesColor: "blue", } } Enter fullscreen mode Exit fullscreen mode This snippet shows that face is an object as well as character.…
Read More
My Top 5 Favorite Algorithm Problems at Codewars

My Top 5 Favorite Algorithm Problems at Codewars

What is codewars? Codewars is a social network of programmers who get together to challenge each other to solve code challenges. Codewars is one of the best websites for practicing algorithms and solving Katas. Katas? Yes, as in Karate. What are katas in codewars? In the spirit of martial arts, more specifically Karate, these code problems are called katas. The katas are divided, ascendingly, according to their difficulty. There are katas from 8th kyu to 1st kyu, with 1st kyu being the most difficult type of kata of all. There are katas on many, many topics: algorithm development, efficiency, regex,…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.