8000 add credit · bloomer1/Leetcode@c82519f · GitHub
[go: up one dir, main page]

Skip to content

Commit c82519f

Browse files
add credit
1 parent b215682 commit c82519f

File tree

  • src/main/java/com/stevesun/solutions

1 file changed

+1
-0
lines changed

src/main/java/com/stevesun/solutions/_560.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
public class _560 {
1919

20+
//credit: https://discuss.leetcode.com/topic/87850/java-solution-presum-hashmap
2021
public int subarraySum(int[] nums, int k) {
2122
Map<Integer, Integer> preSum = new HashMap();
2223
int sum = 0;

0 commit comments

Comments
 (0)
0