Articles by Tag #array

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

JavaScript (ES6+) Array Functions with Examples

Below is a detailed, up-to-date list of all standard JavaScript array methods and properties...

Learn More 2 1May 1

The Ultimate Guide to Arrays in Java: From Zero to Hero (With a Dash of Humor)

“Programming without arrays is like cooking without a bowl – sure, you could do it, but why would...

Learn More 2 0Nov 16 '24

Leetcode — 3190. Find Minimum Operations to Make All Elements Divisible by Three

This is an easy problem with description being: You are given an integer array nums. In one...

Learn More 2 0Dec 19 '24

MongoDB Arrays: Sort Order and Comparison

Arrays in MongoDB are ordered lists of values, and querying them can be confusing because a field...

Learn More 2 0Aug 18

Understanding Laravel's Arr::dot() Method

When working with deeply nested arrays in Laravel, especially when handling configuration files, API...

Learn More 2 0May 5

LeetCode — 3467. Transform Array by Parity

This is an easy problem with the description being: You are given an integer array nums. Transform...

Learn More 1 0May 28

Spiral matrix

Problem TC: O(n*m) class Solution { public List<Integer> spiralOrder(int[][] matrix) { ...

Learn More 0 0Feb 15

Few Java Programs

1.Create a class Trial with PSVM create an array of names of length 5 -> String[] names = new...

Learn More 0 0Aug 11

Leetcode — Top Interview 150 — Remove Element

It’s an easy problem that consists in: Given an integer array nums and an integer val, remove all...

Learn More 0 0Nov 2 '24

Sliding subarray beauty

This is a fixed size SlidingWindow Problem Problem TC: O(n*100) = O(n) SC:O(n) for using HashMap...

Learn More 0 0Oct 24 '24

The Ultimate Guide to JavaScript Array Operations 🖥️

JavaScript arrays are a cornerstone of effective programming in modern web development. From managing...

Learn More 0 0Nov 15 '24

Domine loops em Javascript: como iterar sobre qualquer array e array-like

Ao trabalhar com JavaScript, é importante saber iterar sobre array e array-like. Neste...

Learn More 0 0Mar 2

[📝LeetCode #169] Majority Element

🎀 The Problem Given an array nums of size n, return the majority element. The majority...

Learn More 0 0Jun 6

Apply Operations to an Array

Optimizing Array Operations in TypeScript Today, I explore a Daily Leetcode problem number...

Learn More 0 0Mar 1

Sum of variable length subarray

Problem TC: O(n) SC:O(n) class Solution { public int subarraySum(int[] nums) { int...

Learn More 0 0Jan 20

Grid unique path

Problem TC: O(n*m) SC: O(n*m) for dp array, and O(n+m) for recursive stack space class Solution...

Learn More 0 0Sep 30 '24

Leetcode — Top Interview 150–121. Best Time to Buy and Sell Stock

It’s an easy problem with the description being: You are given an array prices where prices[i] is...

Learn More 0 0Nov 12 '24

Useful Array Methods Every Beginner Must Master

Hey friends! It's another mini-tutorial Wednesday and I can't wait to tell you guys about array...

Learn More 0 0Jun 25

Hilbert Space free will generator used by Kabbalists in sects like NASA and the CIA

There is a theory that goes by the name Margenau’s Theory, which tries its hand at reducing human...

Learn More 0 0Nov 26 '24

How to Check Array Size in JavaScript: A Developer's Guide

Learn methods to check array size in JavaScript—using length, filtering sparse slots, nested arrays, and object key counts.

Learn More 0 0Jun 26

Exploring PHP 8.4: Exciting New Features with Examples

The upcoming PHP 8.4 release promises to bring several new features and improvements that simplify...

Learn More 0 0Dec 23 '24

#LearnedToday: Object.groupBy()

🥳 It is finally out! No more need to write ugly code to group an array of objects by a specific value...

Learn More 0 0Aug 26 '24

LeetCode — 3264. Final Array State After K Multiplication Operations I

It’s an easy problem with the description being: You are given an integer array nums, an integer k,...

Learn More 0 0Jul 7

Python Length of Array

Learn how to use Python len() function and other methods to get the length of arrays and lists efficiently.

Learn More 0 0Jul 27

array[]: uma classe especial gerenciada internamente pela própria JVM

A primeira forma como todos nós somos introduzidos ao estudo de estruturas de dados em Java (e em...

Learn More 0 0Sep 12 '24