20. Valid Parentheses - JavaScript Solution - by Abu Saleh FaysalAn array of parentheses are given. We need to find out if the array contains both opening and closing parentheses or not. Steps: Declare a variable called "stack" and store an empty array. Iterate a for loop over the given array and store the array...Feb 10, 2023·2 min read
1. Two Sum - Leetcode - JavaScript Solution using HashMap - by Abu Saleh FaysalNov 12, 2022·2 min read
1. Two Sum — Leetcode — JavaScript Solution using for loops - by Abu Saleh Faysal1. Two Sum Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can r...Nov 10, 2022·2 min read