© 2023 Hashnode

#datastructure

Today I would like to introduce a browser extension that is highly beneficial for anyone who uses leet code to practice problem-solving. The extension is called Leethub. What is Leethub? Leethub is a …

If you are a software engineer or studying to become a software engineer, then you have probably come across these Computer Science concepts - Data Structures and Algorithms. What are Data Structures …

As software engineers, we need to implement optimal data structures to solve our day-to-day tasks like we need to use arrays, linked lists, hashmaps, etc. In this blog, I will try to cover all the use cases and implementation with each data…

Difficulty: Hard Language: JavaScript Background and History The edit distance algorithm is widely used by data scientists and is the basic algorithm used as the evaluation standard for machine transl…

Difficulty: Easy Language: JavaScript Problem Description You have given an array of prices where prices[i] is the price of a given stockon the ith day. You want to maximize your profit by choosing a …

What is time complexity? Time complexity is a measure of an algorithm's efficiency based on the amount of time it takes to run as the input size grows. Big O notation is typically used to represent ho…

The stack data structure is a data structure which follows LIFO(Last in First out). A real-life example is the pile of books which are placed on top of one another, where the book on the top is the la…

What is a tree? A tree is a hierarchical data structure consisting of nodes connected by edges. Each node in the tree can have zero or more child nodes, and each child node can have its own child node…

while learning hashing in python I generally get confused about different terminology and somehow I think O(n^2) is not that bad but now after solving questions I am getting a feeling of hashmap so be…

Arrays in JavaScript An array is a unique data structure that holds an ordered collection of elements, which can be of any data type such as numbers, strings, or even other arrays. It allows you to store multiple values in a single variable…