LeetCode problems #2726 (JavaScript), #897 (Ruby)



LeetCode problems #2726 (JavaScript), #897 (Ruby)

LeetCode problems #2726 (JavaScript), #897 (Ruby)

I usually start the day by investigating the best solutions to LeetCode problems, solved by me on previous days.

And yesterday I solved #2726. Calculator with Method Chaining –
https://leetcode.com/problems/calculator-with-method-chaining/
You can watch yesterday’s video here: https://youtu.be/FhEV7T6qhck
So today I present to you the best approach to that problem.

Also, today I attempted and finally solved #897. Increasing Order Search Tree –
https://leetcode.com/problems/increasing-order-search-tree/
My solution is far from being optimal, so join me tomorrow to find out what is the best way to solve this problem.

Support me:
http://paypal.me/codeofthunder

Watch live at https://www.twitch.tv/code_of_thunder