ChenZengze's Blog


  • 首页

  • 归档

【Leetcode】495. Teemo Attacking

发表于 2017-07-04 | | 阅读次数
DescriptionIn LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo’s attac ...
阅读全文 »

【Leetcode】532. K-diff Pairs in an Array

发表于 2017-07-03 | | 阅读次数
DescriptionGiven an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined ...
阅读全文 »

【Leetcode】565. Array Nesting

发表于 2017-06-30 | | 阅读次数
DescriptionA zero-indexed array A consisting of N different integers is given. The array contains all integers in the range [0, N - 1]. Sets S[K] for ...
阅读全文 »

【Leetcode】 566. Reshape the Matrix

发表于 2017-06-28 | | 阅读次数
DescriptionIn MATLAB, there is a very useful function called ‘reshape’, which can reshape a matrix into a new one with different size but keep its ori ...
阅读全文 »

【Leetcode】581. Shortest Unsorted Continuous Subarray

发表于 2017-06-27 | | 阅读次数
DescriptionGiven an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole arr ...
阅读全文 »

【Leetcode】605. Can Place Flowers

发表于 2017-06-26 | | 阅读次数
DescriptionSuppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent p ...
阅读全文 »

【Leetcode】611. Valid Triangle Number

发表于 2017-06-26 | | 阅读次数
DescriptionGiven an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangle ...
阅读全文 »

【Leetcode】628. Maximum Product of Three Numbers

发表于 2017-06-25 | | 阅读次数
DescriptionGiven an integer array, find three numbers whose product is maximum and output the maximum product. ExampleInput: [1,2,3]Output: 6 Note1.Th ...
阅读全文 »

【Leetcode】621.Task Scheduler

发表于 2017-06-25 | | 阅读次数
DescriptionGiven a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. ...
阅读全文 »

【Leetcode】624.Maximum Distance in Arrays

发表于 2017-06-21 | | 阅读次数
DescriptionGiven m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks o ...
阅读全文 »
1…345
陈曾泽

陈曾泽

静水流深

41 日志
3 标签
GitHub Twitter Instagram
© 2017 陈曾泽
由 Hexo 强力驱动
主题 - NexT.Pisces