Tagged articles
6 articles
Page 1 of 1
php Courses
php Courses
Jun 5, 2024 · Backend Development

Building and Displaying Nested Category Trees with PHP and MySQL

This guide explains how to design a MySQL categories table, retrieve records with PHP, construct a recursive tree based on parent_id, and render the hierarchical structure as nested HTML lists, providing a complete solution for managing product categories in e‑commerce applications.

PHPRecursivecategory tree
0 likes · 5 min read
Building and Displaying Nested Category Trees with PHP and MySQL
php Courses
php Courses
Jan 5, 2024 · Backend Development

Understanding PHP count() and sizeof() Functions: Differences, Usage, and Tips

This article explains the PHP count() and sizeof() functions, clarifying that they are aliases with identical behavior, showing basic usage examples, discussing when to prefer one over the other, and offering performance notes, recursive counting, and object handling tips for developers.

ArraysBackendPHP
0 likes · 4 min read
Understanding PHP count() and sizeof() Functions: Differences, Usage, and Tips
php Courses
php Courses
Sep 4, 2023 · Fundamentals

Binary Search: Explanation and PHP Implementations

Binary search is an efficient O(log n) algorithm for locating a target value in a sorted array, and this article explains its step-by-step process, provides iterative and recursive PHP code examples, and discusses their usage and performance considerations.

Binary SearchIterativeO(log n)
0 likes · 6 min read
Binary Search: Explanation and PHP Implementations
Python Programming Learning Circle
Python Programming Learning Circle
May 27, 2020 · Fundamentals

Solving the 24‑Point Game with Python: Two Algorithmic Approaches

This article explains how to determine whether any four playing cards can be combined using addition, subtraction, multiplication, and division (with parentheses) to reach 24, presenting two Python implementations—an exhaustive enumeration method and a more efficient recursive combination technique—along with performance comparisons.

24-point gameEnumerationRecursive
0 likes · 8 min read
Solving the 24‑Point Game with Python: Two Algorithmic Approaches