Tag: heap
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 array nums and an integer k, return the k most frequent elements. You may return the answer …
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 …
Today I need a Java function to check if a given time string e.g. 20130218001203638, (e.g, 18 of Feb, 2013) is weekend, i.e Saturday or Sunday. So, the following …