LC986Problem: Given two sorted lists of intervals, List A and List B, the intervals in each list are not overlapped or disjoint. Find the…Aug 18, 2021Aug 18, 2021
LC767Problem: Given a string s, rearrange the characters of s so that any two adjacent characters are not the same.Return any possible…Aug 18, 2021Aug 18, 2021
LC 1041Problem: Instruction for a robot movement L : turn left, R: turn right, G: go straight for 1 step Given sequence of instruction will be…Jul 18, 2021Jul 18, 2021
LC 560Goal: Find the numbers of subarrays that sum up to k. Array is an int array and has duplicates and negative numbers.Jul 17, 2021Jul 17, 2021
LC 974Goal: Given an array of integers, count number of subarrays that have sums that are divisible by K, where 2 ≤ K ≤ 10000. The subarray size…Jan 18, 2021Jan 18, 2021
LC 31Goal: Given an array of non integers, find the lexicographically next permutation. If no such permutation, return the ascending order…Jan 14, 2021Jan 14, 2021
LC 84Goal: Given an array of non-negative integers which represent histograms with width of 1 and height of the integer value. Find the…Jan 14, 2021Jan 14, 2021
LC 239Goal: Given an integer array and window side of K, find the max values for every window in the array. Return the max values array.Jan 13, 2021Jan 13, 2021
LC 862Goal: find the size of shortest subarray in given array that sum up to at least K, where negative integer is allowed. Reasoning for…Jan 13, 2021Jan 13, 2021