Tag: priority queue
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a positive integer num, split it into two non-negative integers num1 and num2 such that: The concatenation of num1 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Take Gifts From the Richest Pile You are given an integer array gifts denoting the number of gifts in various …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return the nth ugly number. Ugly number is a positive number whose prime factors only include …
You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes = : numberOfBoxesi is the number of boxes …
Teaching Kids Programming: Videos on Data Structures and Algorithms You have some number of sticks with positive integer lengths. These lengths are given as an array sticks, where sticks …