Online Judege Demo. Currently support Python and Java.

Given a string S of lowercase letters, partition S into as many as parts so that one letter only app

Given a string S of lowercase letters, you need to find as many as substrings from the S that meets

Write an algorithm that identifies the top N toys out of a list of quotes and list of toys...

Your server has received a package of N incoming requests. Handling the K-th request (for K from 0 t

Find the longest diameter of a m-ary tree.

Given an array of integers representing the value of coupons, return the minimum number of consecuti

Given a string str and an integer k, you need to rearrange the string in a way that the same charact

Given a two 2D integer array, find the max score of a path from the upper left corner to bottom righ

Given a two 2D integer array, find the max score of a path from the upper left corner to bottom righ

Given a n*n 2D array. Fill the integer from 1 to n*n to this 2D array that makes the sum of each

Given a M-ary tree, find the subtree with maximum average. Return the root of the subtree.

Given a BST, and an integer k, cut the BST vertically into two substrees A and B, where all nodes in

Given an undirected graph, find out all the vertices when removed will make the graph disconnec

Given a binary tree and a list of nodes say [n1, n2, .. nk], write a program to find the least comm

A pizza shop offers n pizzas along with m toppings. A customer plans to spend around x coins. The cu

You are given a huge number of IPs in a list. Remove all duplicated addresses from the list.

Given an int n, return all possible representations of n in Fibonacci base.

Given a binary tree and a list of nodes say [n1, n2, .. nk], write a program to find the least comm

Amazon Online Assessment Question: Find the minimum cost to repair the edges so that all the nodes a