Tagged articles
242 articles
Page 3 of 3
Laravel Tech Community
Laravel Tech Community
Dec 3, 2020 · Backend Development

PHP array_unique() – Removing Duplicate Values from an Array

This article explains how the PHP array_unique() function removes duplicate values from an array while preserving original keys, describes its optional sort_flags parameter, lists sorting constants, and provides a complete example with code and expected output.

ArrayBackendDuplicate
0 likes · 2 min read
PHP array_unique() – Removing Duplicate Values from an Array
Laravel Tech Community
Laravel Tech Community
Nov 27, 2020 · Backend Development

array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison

This article explains PHP’s array_udiff_assoc function, detailing its purpose of computing array differences with index checks using a user‑defined callback, describing its parameters and return value, and providing a complete example with class definition, custom comparison function, usage code, and resulting output.

ArrayBackendDifference
0 likes · 3 min read
array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison
php Courses
php Courses
Nov 17, 2020 · Backend Development

Performance‑Optimized PHP: Faster Alternatives for Duplicates, Random Selection, Alphanumeric Checks, and Substring Replacement

This article presents several PHP function alternatives that significantly improve execution speed—such as using array_keys + array_flip for duplicate removal, mt_rand for random selection, ctype_alnum for alphanumeric testing, and strtr for substring replacement—backed by benchmark results and practical tips.

ArrayStringbenchmark
0 likes · 6 min read
Performance‑Optimized PHP: Faster Alternatives for Duplicates, Random Selection, Alphanumeric Checks, and Substring Replacement
Laravel Tech Community
Laravel Tech Community
Nov 11, 2020 · Backend Development

PHP array_merge() Function: Merging One or More Arrays

The article explains PHP's array_merge() function, detailing how it combines one or multiple arrays, the handling of string and numeric keys, parameter descriptions, return values, and provides a complete code example with expected output.

ArrayBackendPHP
0 likes · 2 min read
PHP array_merge() Function: Merging One or More Arrays
php Courses
php Courses
Nov 9, 2020 · Backend Development

Performance‑Optimized Alternatives to Common PHP Functions

This article presents faster PHP alternatives for removing duplicate array values, selecting random elements, testing alphanumeric strings, and replacing substrings, providing benchmark results that show significant speed improvements and discussing trade‑offs and additional coding tips for better script performance.

ArrayStringbenchmark
0 likes · 6 min read
Performance‑Optimized Alternatives to Common PHP Functions
Java Captain
Java Captain
Nov 2, 2020 · Fundamentals

Comparing Three Ways to Convert Java Arrays to List and Their Use Cases

This article compares three common methods for converting Java arrays to List—Arrays.asList, using an ArrayList constructor, and Collections.addAll—detailing their advantages, limitations, performance, and appropriate scenarios, while also explaining common type conversion errors and best practices for primitive and wrapper types.

ArrayArrayListArrays.asList
0 likes · 8 min read
Comparing Three Ways to Convert Java Arrays to List and Their Use Cases
MaGe Linux Operations
MaGe Linux Operations
Oct 14, 2020 · Fundamentals

How to Remove Duplicates In-Place From a Sorted Array in Python

This article explains how to remove duplicates from a sorted array in‑place using Python, detailing the problem constraints, providing two illustrative examples, outlining a simple iteration‑based solution approach, and presenting a complete code implementation that operates with O(1) extra space.

Arrayalgorithmduplicate removal
0 likes · 3 min read
How to Remove Duplicates In-Place From a Sorted Array in Python
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 8, 2020 · Fundamentals

Understanding the JDK Stack Implementation and Its Practical Applications

This article explains the meaning of "stack" in Java, examines the JDK's Stack class implementation—including its inheritance from Vector and core methods—provides full source code, demonstrates array manipulation with System.arraycopy, and explores common stack applications such as browser navigation, function call stacks, and complexity analysis.

ArrayData StructureJDK
0 likes · 8 min read
Understanding the JDK Stack Implementation and Its Practical Applications
Laravel Tech Community
Laravel Tech Community
Sep 6, 2020 · Backend Development

PHP str_split() Function – Convert a String to an Array

The article explains PHP's str_split() function, which converts a string into an array of characters or fixed‑length chunks, details its parameters and return behavior, and provides example code with output, including demonstrating how split_length affects the result.

ArrayBackendPHP
0 likes · 2 min read
PHP str_split() Function – Convert a String to an Array
Laravel Tech Community
Laravel Tech Community
Sep 4, 2020 · Backend Development

Using PHP implode() to Convert an Array into a String

This article explains how the PHP implode() function joins the values of a one‑dimensional array into a single string, describes its parameters and return value, and provides clear code examples demonstrating typical usage and edge cases.

ArrayBackendPHP
0 likes · 2 min read
Using PHP implode() to Convert an Array into a String
Laravel Tech Community
Laravel Tech Community
Jul 8, 2020 · Backend Development

PHP file() Function: Reading Files into an Array

The PHP file() function reads an entire file into an array, offering optional flags to control path lookup, line handling, and context usage, with examples showing how to display lines, concatenate content, and apply flag combinations for flexible file processing.

ArrayBackendPHP
0 likes · 3 min read
PHP file() Function: Reading Files into an Array
Laravel Tech Community
Laravel Tech Community
Jun 24, 2020 · Backend Development

Laravel Array Helper Functions: Usage and Examples

This article provides a comprehensive guide to Laravel's array helper functions, illustrating how to add, merge, retrieve, filter, and manipulate array data with practical PHP code examples for functions such as array_add, array_collapse, array_divide, array_dot, array_except, array_first, array_last, array_flatten, array_forget, array_get, array_has, array_only, array_pluck, array_prepend, array_pull, array_random, array_set, and array_sort.

ArrayBackendhelper functions
0 likes · 7 min read
Laravel Array Helper Functions: Usage and Examples
Selected Java Interview Questions
Selected Java Interview Questions
May 26, 2020 · Fundamentals

Eight Common Data Structures Every Programmer Should Know

This article introduces eight fundamental data structures—arrays, linked lists, stacks, queues, hash tables, trees, heaps, and graphs—explaining their definitions, core operations, typical applications, and visual illustrations to help programmers master essential concepts for software development and technical interviews.

ArrayData StructuresQueue
0 likes · 12 min read
Eight Common Data Structures Every Programmer Should Know
ITPUB
ITPUB
Mar 25, 2020 · Fundamentals

Essential Data Structures Every Programmer Should Master

This article introduces eight fundamental data structures—arrays, linked lists, stacks, queues, hash tables, trees, heaps, and graphs—explaining their definitions, core operations, typical applications, and key characteristics to help developers build a solid foundation.

ArrayData StructuresQueue
0 likes · 13 min read
Essential Data Structures Every Programmer Should Master
FunTester
FunTester
Mar 21, 2020 · Fundamentals

How to Find Duplicate Numbers in an Array in O(n) Time and O(1) Space

This article explains two algorithmic solutions for locating any duplicate number in an array of length n where values range from 0 to n‑1: a straightforward HashSet method using O(n) extra space and an in‑place swapping technique that achieves O(1) space, complete with Java and JavaScript code examples and complexity analysis.

ArrayJavaScriptLeetCode
0 likes · 5 min read
How to Find Duplicate Numbers in an Array in O(n) Time and O(1) Space
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 9, 2020 · Fundamentals

100 Essential NumPy Exercises to Master Array Operations

This article presents a curated collection of 100 NumPy exercises covering array creation, manipulation, mathematical operations, indexing, broadcasting, and advanced techniques, providing concise code examples and explanations to help both beginners and experienced users deepen their understanding of NumPy's capabilities.

ArrayNumPydata-science
0 likes · 16 min read
100 Essential NumPy Exercises to Master Array Operations
Architect's Tech Stack
Architect's Tech Stack
Mar 1, 2019 · Fundamentals

Understanding Arrays: Random Access, Insertion, Deletion, and Efficiency

This article explains what arrays are, how they enable O(1) random access through address calculation, the time‑complexities of insertion and deletion operations, techniques for improving array efficiency, and why zero‑based indexing is used, comparing arrays with dynamic containers like ArrayList.

ArrayData StructureDeletion
0 likes · 6 min read
Understanding Arrays: Random Access, Insertion, Deletion, and Efficiency

Mastering NumPy: From Arrays to Advanced Operations in Python

This comprehensive guide walks through NumPy fundamentals—creating ndarrays, setting data types, performing vectorized arithmetic, indexing, slicing, boolean and fancy indexing, transposition, ufuncs, where, statistical functions, linear algebra, random generation, reshaping, and array splitting/concatenation—illustrated with concrete code examples and step‑by‑step explanations.

ArrayDataScienceNumPy
0 likes · 21 min read
Mastering NumPy: From Arrays to Advanced Operations in Python
Beike Product & Technology
Beike Product & Technology
Jul 9, 2017 · Backend Development

Analyzing PHP foreach Memory Behavior and Array Internals

This article examines how PHP's foreach construct consumes memory under different reference modes, explains the internal structure of PHP arrays, buckets, and zvals, and provides practical recommendations for choosing reference or value iteration to minimize memory usage.

Arraybackend-developmentforeach
0 likes · 17 min read
Analyzing PHP foreach Memory Behavior and Array Internals
21CTO
21CTO
Dec 5, 2016 · Backend Development

How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level

This article explains how to create a PHP extension function named array_concat that merges two arrays by concatenating string values for matching keys, detailing the required C code, Zend hash operations, parameter parsing, and example usage, providing a practical guide for PHP developers.

ArrayExtensionPHP
0 likes · 6 min read
How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level
Java Backend Technology
Java Backend Technology
Nov 1, 2016 · Fundamentals

Which Java Method Is Fastest to Check If an Array Contains a Value?

This article compares several Java techniques—using List, Set, a simple loop, Arrays.binarySearch, and Apache Commons ArrayUtils—to determine whether an unordered array contains a specific value, analyzes their time complexities, and presents benchmark results for arrays of different sizes.

/loopArrayCONTAINS
0 likes · 6 min read
Which Java Method Is Fastest to Check If an Array Contains a Value?
Aotu Lab
Aotu Lab
Apr 29, 2016 · Frontend Development

Mastering JavaScript’s reduce(): From Basics to Advanced Use Cases

This article explains the ES5 Array.prototype.reduce() method, compares it with forEach and map, details its syntax and parameters, provides step‑by‑step code examples—including handling of initial values and object arrays—and notes browser compatibility and library alternatives.

ArrayJavaScriptMAP
0 likes · 7 min read
Mastering JavaScript’s reduce(): From Basics to Advanced Use Cases