Tag

Time Complexity

0 views collected around this technical thread.

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.

Duplicate DetectionPHPSpace Complexity
0 likes · 4 min read
Detecting Duplicate Elements in an Array with PHP
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.

Duplicate DetectionPHPSpace Complexity
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.

Duplicate DetectionPHPSpace Complexity
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
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.

Duplicate DetectionPHPSpace 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.

Duplicate DetectionPHPTime Complexity
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.

Duplicate DetectionPHPSpace Complexity
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
IT Services Circle
IT Services Circle
Nov 26, 2023 · Fundamentals

Common Causes of Time Limit Exceeded (TLE) Errors in LeetCode and How to Optimize Solutions

This article explains why LeetCode submissions often receive Time Limit Exceeded errors, covering inefficient algorithms, infinite loops, redundant calculations, unsuitable data structures, and poor I/O handling, and illustrates common examples with specific problems and more efficient solutions.

LeetCodeTLETime Complexity
0 likes · 5 min read
Common Causes of Time Limit Exceeded (TLE) Errors in LeetCode and How to Optimize Solutions
Python Programming Learning Circle
Python Programming Learning Circle
Jul 19, 2022 · Fundamentals

Understanding Program Runtime Efficiency: Time and Space Complexity in Python

This article explains the concepts of time and space complexity, demonstrates their practical measurement with Python's list and set structures, and compares their lookup speed and memory consumption using concrete code examples and empirical results.

PerformancePythonSpace Complexity
0 likes · 6 min read
Understanding Program Runtime Efficiency: Time and Space Complexity in Python
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.

GoInterviewTime Complexity
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.

Data StructureLinked ListRedis
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 WindowTime Complexity
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.

C++Time Complexityalgorithm
0 likes · 6 min read
Understanding Merge Sort and Merging Two Sorted Arrays in C#
Selected Java Interview Questions
Selected Java Interview Questions
Jul 4, 2021 · Fundamentals

Understanding Time Complexity and Big O Notation with Java Examples

This article explains the concept of constant‑time operations, introduces Big O notation for describing algorithmic time complexity, and demonstrates how to calculate and interpret complexities such as O(1), O(N), O(N²) and O(N²·logN) through clear Java code examples.

JavaTime Complexityalgorithm analysis
0 likes · 7 min read
Understanding Time Complexity and Big O Notation with Java Examples
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.

AlgorithmsSpace ComplexityTime Complexity
0 likes · 12 min read
Personal Reflections on Algorithms, Data Structures, 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.

JavaTime Complexityalgorithm
0 likes · 23 min read
Understanding Recursion: Concepts, Complexity Analysis, and Practical Examples
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.

Time Complexityalgorithm fundamentalsdata structures
0 likes · 3 min read
Overview of Common Sorting Algorithms and Their Characteristics