摘要:
Description Given an array A of integers, return the number of (contiguous, non empty) subarrays that have a sum divisible by K. Example 1: Note: 1 思路 阅读全文
摘要:
Description Given 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 define 阅读全文
摘要:
Description Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: Follow up: Could you do it in O(n) time and O(1) space? 阅读全文
摘要:
Description Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies 阅读全文
摘要:
Description Given an array of non negative integers, you are initially positioned at the first index of the array. Each element in the array represent 阅读全文
摘要:
Description Given an array of non negative integers, you are initially positioned at the first index of the array. Each element in the array represent 阅读全文
摘要:
Description Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between 阅读全文
摘要:
Description Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compu 阅读全文
摘要:
Description Given an array of citations (each citation is a non negative integer) of a researcher, write a function to compute the researcher's h inde 阅读全文