# [TIL] Leetcode Algorithm Problems & JS Object

## **Issues Encountered**

1. While solving the Two Sum problem, I applied the two-pointer approach that I studied yesterday, but the code was not clean, and I thought there could be further improvements in terms of efficiency.
    

## **What I Tried**

1. [Leetcode 1. Two Sum Problem](https://siwonlog.hashnode.dev/leetcode-1-two-sum)
    
2. [Leetcode 121. Buy and Sell Stock](https://siwonlog.hashnode.dev/leetcode-121-best-time-to-buy-and-sell-stock)
    

## How I resolved the issues

1. Two-pointer approach
    

## What I newly learned

1. Reviewed the two-pointer approach and learned how to utilize a hash map in this problem.
    
2. [JS Object](https://poiemaweb.com/js-object)
    

## What to learn next

1. Study Node.js and JS Deep Dive book starting tomorrow.
