#leetcode-solution
Read more stories on Hashnode
Articles with this tag
Link: https://leetcode.com/problems/triangle · class Solution { public int minimumTotal(List<List<Integer>> triangle) { // int...
[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/binary-tree-right-side-view/ · class Solution { public List<Integer> rightSideView(TreeNode root) { ...
[Problem Link] https://leetcode.com/problems/rotting-oranges/ · class State{ int n; int time; public State(int n, int time){ this.n...
[Problem Link] https://leetcode.com/problems/number-of-islands/ · class Solution { private int[][] dir = {{1,0}, {-1,0}, {0,1}, {0,-1}}; public...