greedy
sysu_xiamengyou
这个作者很懒,什么都没留下…
展开
-
Remove K Digits
Remove K Digits@(algorithm)[greedy]问题描述: Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note:原创 2017-03-23 19:52:29 · 725 阅读 · 0 评论 -
Queue Reconstruction by Height
问题描述: Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front o原创 2017-03-26 19:37:20 · 415 阅读 · 0 评论