Rotate Array

Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: [1,2,3,4,5,6,7] and k = 3 Output: [5,6,7,1,2,3,4...

2019-05-27 21:53:01

阅读数 30

评论数 0

Minimum Size Subarray Sum

Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t...

2019-05-27 16:43:56

阅读数 19

评论数 0

Longest Common Prefix

Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string “”. Examp...

2019-05-27 14:57:57

阅读数 50

评论数 0

Add Binary

Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example ...

2019-05-27 14:48:01

阅读数 24

评论数 0

提示
确定要删除当前文章?
取消 删除