Given a list of integers nums and an integer k, determine if there are three distinct elements in the list that add up to k. Constraints n ≤ 1,000 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10^n. Example: Input: …
Given a singly linked list node, reorder it such that we take: the last node, and then the first node, and then the second last node, and then the …
Teaching Kids Programming: Videos on Data Structures and Algorithms Trie (we pronounce “try”) or prefix tree is a tree data structure used to retrieve a key in a strings …
Given a Unix path, represented as a list of strings, return its resolved version. In Unix, “..” means to go to the previous directory and “.” means to stay …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. …