Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Every close bracket has a corresponding open…

## Leetcode Two Sums Java

This is the first time I try Leetcode. Here is the Java solution to my first Leetcode problem. We have to find two different indexes, in any order, of two integers which add up to target.

## Leetcode Two Sums C++

This is the first time I try Leetcode. Here is the C++ solution to my first Leetcode problem. We have to find two different indexes, in any order, of two integers which add up to target. This code is very efficient for memory, but at the expense of speed, O(n2). The next code is much…