#arrays
Read more stories on Hashnode
Articles with this tag
[Problem Link] https://leetcode.com/problems/container-with-most-water/ · class Solution { public int maxArea(int[] height) { //two pointer...
[Problem Link] https://leetcode.com/problems/subsets/ · class Solution { private List<List<Integer>> ans; public void generate(int i, int[]...
[Problem Link] https://leetcode.com/problems/maximum-subarray/ · class Solution { public int maxSubArray(int[] nums) { //sliding window ...
[Problem Link] https://leetcode.com/problems/sort-colors/ · class Solution { public void sortColors(int[] nums) { int l = 0; int r =...
[Problem Link] https://leetcode.com/problems/two-sum/ · class Solution { public int[] twoSum(int[] nums, int target) { HashMap<Integer ,...
[Problem Link] https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ · class Solution { public int maxProfit(int[] prices) { int n =...