Homepage
Open in app
Sign in
Get started
DS Algo for novice
Follow
Tree || Level Order || populate next node, perfect binary tree
Tree || Level Order || populate next node, perfect binary tree
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. Populate each next pointer…
Anil Thirunagari
Feb 27, 2022
Ugly Number (Leetcode)
An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given an integer n, return true if n is an ugly…
Anil Thirunagari
Dec 23, 2021
Tower of Hanoi (Recursive and Iterative approach)
Tower of Hanoi (Recursive and Iterative approach)
The Tower of Hanoi (also called the Tower of Brahma or Lucas’ Tower[1] and sometimes pluralized as Towers) is a mathematical game or…
Anil Thirunagari
Dec 9, 2020
Breadth-First Search BFS
Breadth-First Search BFS
Breadth-first search (BFS) is an algorithm for traversing or searching tree or graph data structures. It starts at the tree root (or some…
Anil Thirunagari
Dec 2, 2020
About DS Algo for novice
Latest Stories
Archive
About Medium
Terms
Privacy
Teams