MCPcopy Create free account
hub / github.com/codedecks-in/LeetCode-Solutions / getValue

Method getValue

Java/Arithmetic-Subarrays.java:20–25  ·  view source on GitHub ↗
(int ele)

Source from the content-addressed store, hash-verified

18
19class Solution {
20 public int getValue(int ele){
21 if(ele < 0){
22 return 100000 - ele;
23 }
24 return ele;
25 }
26 public List<Boolean> checkArithmeticSubarrays(int[] nums, int[] l, int[] r) {
27 int m = l.length;
28 ArrayList<Boolean> res = new ArrayList<>();

Callers 2

firstUniqCharMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected