摘要:
问题描述 You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should cho 阅读全文
摘要:
题目 Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in b 阅读全文
摘要:
问题 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 阅读全文
摘要:
问题描述 Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- 阅读全文
摘要:
由于这个问题,涉及了很多知识,例如数据结构里面的哈希表,c++中的迭代器,因此,需要对于每一个疑惑逐一击破。 问题描述 You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', 阅读全文
摘要:
问题描述 Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting ad 阅读全文