摘要:
题目: Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? For example,Given sorted array nums = [1,1,1,2,2,3], Your function 阅读全文
摘要:
题目: Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runti 阅读全文
摘要:
题目: Given n x m non-negative integers representing an elevation map 2d where the area of each cell is 1 x 1, compute how much water it is able to trap 阅读全文
摘要:
题目: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rain 阅读全文