Identical Trees with hashing

Problem:

এই প্রব্লেমে আমাদেরকে দুটি রুটেড ট্রি ইনপুট হিসেবে দেয়া থাকবে। বলতে হবে, ট্রি দুটি Identical(একই) কি না? অর্থাৎ, রুট ফিক্সড রেখে একই নোডের Child নোডগুলোর সাবট্রি এদিক সেদিক করার পর ট্রি দুটি দেখতে একই হবে কি না। 


Solution:

Comments

Trending Post

STL পরিচিতি । পর্ব - ০১

Knapsack-3 | DP Series(Episode-6)

Shortest distance between two point in a grid when you can move all 8 sides from a position