摘要:
题目: You want to build a house on an empty land which reaches all buildings in the shortest amount of distance. You can only move up, down, left and ri 阅读全文
摘要:
题目:Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure y... 阅读全文
摘要:
题目:You are given an integer arraynumsand you have to return a newcountsarray. Thecountsarray has the property wherecounts[i]is the number of smaller e... 阅读全文
摘要:
题目: Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the 阅读全文
摘要:
题目:Write a program to find the nthsuper ugly number.Super ugly numbers are positive numbers whose all prime factors are in the given prime listprimeso... 阅读全文
摘要:
题目:Givennballoons, indexed from0ton-1. Each balloon is painted with a number on it represented by arraynums. You are asked to burst all the balloons. ... 阅读全文