Tagged articles
31 articles
Page 1 of 1
php Courses
php Courses
Jan 13, 2026 · Backend Development

How to Detect Duplicate Elements in a PHP Array in O(n) Time

This article explains how to determine whether an integer array contains any duplicate values using a PHP solution that leverages an associative map to achieve linear time and space complexity, complete with example inputs, detailed code walkthrough, and complexity analysis.

ArrayPHPalgorithm
0 likes · 4 min read
How to Detect Duplicate Elements in a PHP Array in O(n) Time
Code Mala Tang
Code Mala Tang
Dec 28, 2025 · Fundamentals

How to Find the Longest Substring Without Repeating Characters in O(n)

This article explains the problem of finding the longest substring without repeating characters, demonstrates a brute‑force O(n³) solution with code, then introduces an optimized sliding‑window approach that runs in linear time O(n), including detailed implementation, complexity analysis, and key insights.

Sliding WindowStringalgorithm
0 likes · 5 min read
How to Find the Longest Substring Without Repeating Characters in O(n)
php Courses
php Courses
Nov 21, 2025 · Fundamentals

How to Detect Duplicate Elements in a PHP Array in O(n) Time

This guide explains how to determine whether an integer array contains any duplicate values by iterating once, using a PHP associative array to track seen elements, and returning true on the first repeat or false if all elements are unique, with detailed code, step‑by‑step flow, and complexity analysis.

array algorithmduplicate detectiontime-complexity
0 likes · 4 min read
How to Detect Duplicate Elements in a PHP Array in O(n) Time
IT Services Circle
IT Services Circle
Aug 25, 2025 · Fundamentals

How to Efficiently Compress Strings in Java: Interview‑Ready Solution

The article critiques absurd interview questions, then presents a practical Java solution for compressing strings by replacing consecutive characters with their counts, explains the algorithm’s O(n) time and O(1) extra space, discusses edge cases like multi‑digit counts and Unicode handling, and offers implementation tips.

JavaString Compressionalgorithm
0 likes · 6 min read
How to Efficiently Compress Strings in Java: Interview‑Ready Solution
php Courses
php Courses
Jul 14, 2025 · Backend Development

Detect Duplicates in a PHP Array with an O(n) Solution

This article explains how to efficiently detect duplicate elements in a PHP integer array using an O(n) algorithm, detailing the solution class, step‑by‑step execution flow, and its linear time and space complexities.

array algorithmduplicate detectionspace complexity
0 likes · 4 min read
Detect Duplicates in a PHP Array with an O(n) Solution
php Courses
php Courses
Jun 4, 2025 · Backend Development

Detecting Duplicate Elements in an Array with PHP

This article explains how to determine whether an integer array contains any duplicate values using a PHP solution that iterates the array, stores seen elements in an associative map, and returns true on the first repeat, with O(n) time and space complexity.

ArrayPHPalgorithm
0 likes · 4 min read
Detecting Duplicate Elements in an Array with PHP
Ops Development & AI Practice
Ops Development & AI Practice
Jan 18, 2025 · Fundamentals

How to Find the Unique Number in O(n) Time Using XOR in Go

This article explains how to identify the single non‑repeating integer in a list where every other number appears twice, using an O(n) time and O(1) space XOR‑based algorithm, complete with Go code, step‑by‑step analysis, complexity discussion, and UML activity diagram.

Golangalgorithmspace complexity
0 likes · 6 min read
How to Find the Unique Number in O(n) Time Using XOR in Go
php Courses
php Courses
Jan 15, 2025 · Backend Development

Detecting Duplicate Elements in an Array with PHP

This article explains how to determine whether an integer array contains duplicate values by iterating through the elements, using a PHP associative array for constant‑time lookups, and provides the full solution code along with its execution flow, time and space complexity analysis.

ArrayPHPalgorithm
0 likes · 4 min read
Detecting Duplicate Elements in an Array with PHP
php Courses
php Courses
Nov 4, 2024 · Fundamentals

Detecting Duplicate Elements in an Array Using PHP

This article explains how to determine whether an integer array contains duplicate values by traversing the array with a PHP solution that uses an associative map, and it details the algorithm's execution flow, time and space complexity, and provides sample inputs and outputs.

PHPduplicate detectionspace complexity
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Jul 30, 2024 · Fundamentals

Inside Python’s List: C‑Level Implementations of Core Methods

This article walks through the CPython source code that defines list’s built‑in methods—append, insert, pop, index, count, remove, reverse, clear, and copy—explaining how each method is wired into the type object, the underlying C logic, time‑complexity characteristics, and common pitfalls such as reference‑count handling and shallow versus deep copying.

Data StructuresListPython
0 likes · 28 min read
Inside Python’s List: C‑Level Implementations of Core Methods
php Courses
php Courses
Jul 19, 2024 · Backend Development

PHP Solution for Detecting Duplicate Elements in an Integer Array

This article explains how to determine whether an integer array contains duplicate values by iterating through each element, using a PHP associative array to track occurrences, and returning true if any value appears at least twice, with detailed code, execution flow, and time‑space complexity analysis.

array algorithmduplicate detectionspace complexity
0 likes · 4 min read
PHP Solution for Detecting Duplicate Elements in an Integer Array
php Courses
php Courses
Jul 12, 2024 · Fundamentals

Detecting Duplicate Elements in an Array Using PHP

This article explains how to determine whether an integer array contains any duplicate values by iterating through the elements, using a hash map for constant‑time lookups, and provides a PHP implementation of the containsDuplicate function along with its time and space complexity analysis.

Arrayalgorithmduplicate detection
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
php Courses
php Courses
Mar 29, 2024 · Backend Development

Detecting Duplicate Elements in an Array Using PHP

This article explains how to determine whether an integer array contains duplicate values by iterating through each element, using a PHP class with a containsDuplicate method that employs an associative array for O(n) time and space complexity, and provides example inputs and detailed execution flow.

PHPduplicate detectionspace complexity
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
IT Services Circle
IT Services Circle
Mar 21, 2022 · Fundamentals

Finding the Smallest Missing Positive Integer: Interview Problem Explanation and Go Solutions

This article explains a classic interview question of locating the smallest missing positive integer from an array, analyzes its theoretical bounds, and presents three O(n) time, O(1) space solutions—including a clever marking technique and a swap‑based method—accompanied by complete Go implementations.

algorithminterviewmissing-number
0 likes · 7 min read
Finding the Smallest Missing Positive Integer: Interview Problem Explanation and Go Solutions
Tencent Cloud Developer
Tencent Cloud Developer
Jan 5, 2022 · Fundamentals

Understanding Skip Lists: Principles, Implementation in Go, and Redis Integration

The article explains skip list fundamentals, shows how probabilistic multi‑level indexing yields O(log n) search and O(n) space, provides a complete Go implementation with insertion, deletion and search functions, compares Redis’s enhanced skip list used in sorted sets, and answers common design questions.

Go ProgrammingIndex structureSkip List
0 likes · 17 min read
Understanding Skip Lists: Principles, Implementation in Go, and Redis Integration
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 13, 2021 · Fundamentals

Sliding Window Technique: Concepts, Framework, and LeetCode Examples

This article introduces the sliding window algorithmic technique, explains its relation to TCP flow control, demonstrates its implementation with Java code for maximum subarray sum, longest substring without repeats, and minimum window substring problems, and provides a reusable framework for solving similar LeetCode challenges.

LeetCodeSliding Windowalgorithm
0 likes · 10 min read
Sliding Window Technique: Concepts, Framework, and LeetCode Examples
Selected Java Interview Questions
Selected Java Interview Questions
Sep 13, 2021 · Fundamentals

Understanding Merge Sort and Merging Two Sorted Arrays in C#

This article explains the merge sort algorithm’s divide‑and‑conquer principle, analyzes its O(n log n) time complexity, and provides two complete C# code examples—one for a generic merge sort and another for merging two already sorted arrays—along with visual illustrations of the merging process.

Calgorithmdivide and conquer
0 likes · 6 min read
Understanding Merge Sort and Merging Two Sorted Arrays in C#
FunTester
FunTester
Jun 11, 2021 · Fundamentals

Personal Reflections on Algorithms, Data Structures, and Complexity

This article shares the author’s personal insights on a book about algorithms, data structures, and complexity, explaining core concepts such as algorithm definition, common data structures, time and space complexity, and offering intuitive examples to aid understanding.

AlgorithmsData Structurescomplexity
0 likes · 12 min read
Personal Reflections on Algorithms, Data Structures, and Complexity
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 15, 2021 · Fundamentals

Mastering Algorithms: Definitions, Design Principles, and Complexity

This article introduces the core concepts of algorithms, covering their definition, five essential properties, design principles such as correctness and readability, methods for analyzing time and space complexity, common complexity classes, and a variety of algorithmic strategies including recursion, dynamic programming, greedy and divide‑and‑conquer techniques.

algorithmalgorithmic strategiescomplexity
0 likes · 23 min read
Mastering Algorithms: Definitions, Design Principles, and Complexity
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 23, 2020 · Fundamentals

Understanding Recursion: Concepts, Complexity Analysis, and Practical Examples

This article introduces recursion, explains its core principles, presents a general problem‑solving approach, and walks through multiple practical examples—from factorial and climbing stairs to binary tree inversion and the Tower of Hanoi—while analyzing time and space complexities and offering optimization techniques.

JavaRecursionalgorithm
0 likes · 23 min read
Understanding Recursion: Concepts, Complexity Analysis, and Practical Examples
Liangxu Linux
Liangxu Linux
May 31, 2020 · Fundamentals

Master the Top 10 Classic Sorting Algorithms with Code and Visualizations

This article systematically presents ten classic sorting algorithms—bubble, selection, insertion, quick, heap, merge, shell, counting, bucket, and radix—detailing their concepts, time and space complexities, step‑by‑step logic, animated illustrations, and complete source code examples in C++ and JavaScript.

C++Data StructuresJavaScript
0 likes · 19 min read
Master the Top 10 Classic Sorting Algorithms with Code and Visualizations
Senior Brother's Insights
Senior Brother's Insights
Dec 21, 2019 · Fundamentals

Master Recursion: From Basics to Advanced Techniques with Time‑Complexity Insights

This article explains the concept of recursion, presents a universal four‑step solving method, and walks through multiple practical examples—from factorials and frog‑jump problems to binary‑tree inversion, Tower of Hanoi, and cellular division—while detailing time and space complexity analyses and optimization strategies.

Recursionbinary treedynamic programming
0 likes · 22 min read
Master Recursion: From Basics to Advanced Techniques with Time‑Complexity Insights
dbaplus Community
dbaplus Community
Jul 27, 2019 · Fundamentals

How a Chinese Drama Illustrates Data Structures, Algorithms, and Time Complexity

The article uses the plot of the historical series “The Longest Day in Chang’an” to explain how proper use of data structures, recommendation algorithms, and time‑complexity optimizations—such as O(n²) brute‑force search, O(n) mapping, and O(log n) spatial tricks—can turn a desperate race against time into a successful mission, while also touching on big‑data analysis and simple encryption via the tower‑signal system.

AlgorithmsRecommendation Systemsencryption
0 likes · 4 min read
How a Chinese Drama Illustrates Data Structures, Algorithms, and Time Complexity
Java Captain
Java Captain
Dec 7, 2018 · Fundamentals

Overview of Common Sorting Algorithms and Their Characteristics

This article introduces sorting algorithms, distinguishing internal and external sorting, listing major internal sorts, explaining their time‑complexity categories and stability properties, and providing visual illustrations for each algorithm along with a reference to an open‑source implementation.

Data StructuresSorting Algorithmsalgorithm fundamentals
0 likes · 3 min read
Overview of Common Sorting Algorithms and Their Characteristics
MaGe Linux Operations
MaGe Linux Operations
Mar 9, 2016 · Fundamentals

Explore 8 Essential Sorting Algorithms and Their Trade‑offs

This article introduces eight fundamental internal sorting algorithms—Insertion, Shell, Selection, Bubble, Merge, Quick, Heap, and Radix—explaining their principles, step‑by‑step procedures, time and space complexities, and stability characteristics to help readers choose the right method for different data sets.

Data StructuresSorting Algorithmsalgorithm analysis
0 likes · 14 min read
Explore 8 Essential Sorting Algorithms and Their Trade‑offs