---
title: "Rajat Jain (@rajatexplains) | Hashnode"
description: "Software Engineer II 👨‍💻 at Uber | ex-Microsoft | Javascript ❤️ | Mentor 👨‍🏫 at CodeAsylums | Tech Speaker 🗣️ | React | GraphQL"
url: "https://hashnode.com/@rajatexplains"
---

@rajatexplains

# Rajat Jain

@rajatexplains · Bengaluru, India · Joined August 2020

Software Engineer II 👨‍💻 at Uber | ex-Microsoft | Javascript ❤️ | Mentor 👨‍🏫 at CodeAsylums | Tech Speaker 🗣️ | React | GraphQL

[Website](https://rajatexplains.com/)

## Comments

[Hi Renan Couto, great job explaining the recursive solution. I personally find the iterative solution for this problem quite intuitive during the interview, and that is why I went forward with it. However, recursive solution also has the same time complexity, as you mentioned it is O(n). And yes, thank you for appreciating the post :)](https://hashnode.com/posts/find-corresponding-node/60cd6833554b0d31c60540b2/comment/61c40b042d88363ed4eaa3d4#reply-61d8601b4b84101d2c3ee574)

Reply · Article · Jan 7, 2022 · [Find corresponding node in an identical DOM tree](https://hashnode.com/posts/find-corresponding-node/60cd6833554b0d31c60540b2)

[Oops..thanks for pointing it out. Edited :)](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5fbaab841b7ab0041800ec54#reply-5fbaad3f0ad7f613de398719)

Reply · Article · Nov 22, 2020 · [Basics of Redux in 20 minutes](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68)

[Also, if you want a starting point for Redux, go for Dan Abramov's redux tutorial on egghead.io https://egghead.io/courses/getting-started-with-redux](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5f730c26f955ec0a130f6017#reply-5f730f971d7a870a345b9a38)

Reply · Article · Sep 29, 2020 · [Basics of Redux in 20 minutes](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68)

[Hey Dinys, As you know, Redux is a state management library. When you are working on a big project, with many components and UI flows, state management using the conventional React patterns can be painful. That is why redux was created borrowing patterns from the flux architecture. So, the answer to your question is that when you are working on such a project, you should opt for a library like Redux (there are others too like MobX). Having said all this, nowadays, with React's context API (introduced in React 16), most of the heavy lifting of managing state is handled by React itself if you are using context at right places. Honest speaking, learning Redux is more about learning the pub-sub model it is based on. In many interviews, they ask you to create a state store like how Redux has. Now, if you have not delved into and used a state management library like Redux, the implementation will look alien to you. The underlying architecture of redux is amazing. So, I'd say even if you are not using it and working your way out using Context API , learn redux to understand the beauty of the underlying architecture.](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5f730c26f955ec0a130f6017#reply-5f730f2cf955ec0a130f6082)

Reply · Article · Sep 29, 2020 · [Basics of Redux in 20 minutes](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68)
