Category: algorithms
Given a list of integers nums, return the number of contiguous arithmetic sequences of length ≥ 3. Constraints n ≤ 10,000 where n is length of nums. Example 1 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an array of numbers and a target, find out if there is any three numbers that sum up to …
Given a binary tree root, return the number of nodes that are an only child. A node x is an only child if its parent has exactly one child …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an array of integers numbers that is already sorted in ascending order, find two numbers such that they add …
Given a singly linked list node, return the value of the middle node. If there’s two middle nodes, then return the second one. Constraints n ≤ 100,000 where n …