CCtangentinctangent.hashnode.dev·Oct 8, 2023 · 1 min readMaths: Reverse a numberReverse a number Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-2<sup>31</sup>, 2<sup>31</sup> - 1], then return 0. class Solution { public int r...00
CCtangentinctangent.hashnode.dev·Sep 9, 2023 · 2 min readMorris Inorder TraversalSo one of the most fundamental data structures in trees are Binary Search Trees. But when we talk about Binary trees a lot of folks tend to get confused. The difference btw BST and Binary trees is that in Binary search trees, every node to the left o...00