
相向双指针
flyatcmu
这个作者很懒,什么都没留下…
展开
-
Valid Triangle Number
Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle. Example 1: Input: [2,2,3,4] Output: 3 Explanation: Valid combinat原创 2020-05-19 14:22:55 · 118 阅读 · 0 评论 -
Valid Triangle Number
Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle. Example 1: Input: [2,2,3,4] Output: 3 Explanation: Valid combinat原创 2020-05-19 13:26:31 · 153 阅读 · 0 评论 -
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Panama"is a palindrome."race a car"isnota palind...原创 2016-07-05 14:43:12 · 274 阅读 · 0 评论