Teaching Kids Programming: Videos on Data Structures and Algorithms Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = , nums2 = Output: Example …
You are given a two dimensional array matrix, containing strings “r”, “g”, and “b”. Perform a floodfill operation at row r, column c with the color target. A floodfill …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST. …
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 …