摘要:
Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?public class So... 阅读全文
摘要:
Given an arraynumsand a target valuek, find the maximum length of a subarray that sums tok. If there isn't one, return 0 instead.Example 1:Givennums=[... 阅读全文
摘要:
A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index.... 阅读全文