
hash table
文章平均质量分 74
baladeer
CV菜鸟
展开
-
697. Degree of an Array
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.Your task is to find the smallest possible length o原创 2018-01-11 08:11:49 · 193 阅读 · 0 评论 -
560. Subarray Sum Equals K
560. Subarray Sum Equals KGiven an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.Example 1:Input:nums = [1,1,1], k原创 2018-01-11 08:35:09 · 152 阅读 · 0 评论 -
523. Continuous Subarray Sum
Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to the multiple of k, that is, sums up t原创 2018-01-11 09:40:40 · 144 阅读 · 0 评论 -
138. Copy List with Random Pointer 133. Clone Graph
133:/** * Definition for undirected graph. * struct UndirectedGraphNode { * int label; * vector neighbors; * UndirectedGraphNode(int x) : label(x) {}; * }; */class Soluti原创 2018-01-08 20:43:45 · 111 阅读 · 0 评论 -
314. Binary Tree Vertical Order Traversal
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 same row and column, the order should be from left原创 2018-01-10 11:48:42 · 142 阅读 · 0 评论