Tag: data structure
Given a list of integers nums, return whether there’s two numbers such that one is a triple of another. Constraints n ≤ 100,000 where n is the length of …
Given a singly linked list node whose values are integers, determine whether the linked list forms a palindrome. A palindrome is defined as a sequence whose values are the …
Teaching Kids Programming: Videos on Data Structures and Algorithms A Set is a data structure to hold unique elements in a collection. In Python we can use set() to …
Teaching Kids Programming: Videos on Data Structures and Algorithms Introduction to Stack Stack is an important and commonly-used data structure that implements First In Last Out. The first item …
Segment Tree is one of the most important data structure in Computer Science. Similar to Binary Index Tree, a Segment Tree allows us to update and query (range) in …