Tagged articles

Non-Recursive

2 articles · Page 1 of 1
Ubiquitous Tech
Ubiquitous Tech
Apr 28, 2024 · Fundamentals

Build a Tree Structure in Java Without Recursion

This article explains how to construct hierarchical tree data in Java without using recursion by adapting the non‑recursive algorithm from the zTree jQuery plugin, detailing the underlying hash‑map approach, providing full Java code, and discussing performance benefits and limitations.

AlgorithmData StructureHashMap
0 likes · 12 min read
Build a Tree Structure in Java Without Recursion
Selected Java Interview Questions
Selected Java Interview Questions
Feb 13, 2020 · Fundamentals

Quick Sort: Overview, Naïve Implementation, Optimizations, and Non‑Recursive Version

This article explains the quick sort algorithm, covering its basic divide‑and‑conquer principle, a naïve C implementation, improvements such as two‑way partitioning, random and median‑of‑three pivot selection, and a non‑recursive version using an explicit stack, with full source code examples.

C languageDivide and ConquerNon-Recursive
0 likes · 9 min read
Quick Sort: Overview, Naïve Implementation, Optimizations, and Non‑Recursive Version