Found 4 articles tagged with #arrays

Difference between tuples and arrays in TypeScript

Tuples can store only a fixed number of elements and types at each index, while arrays can store any combination of types and the order is not important.

How to declare array type in TypeScript

Arrays in TypeScript are very similar to JavaScript arrays, but TypeScript provides you with the power of static typing, type inference, and type annotations.

Rotate Array

The problem is about rotating an array to the right by a given number of steps, modify the given array in-place (without using an extra array) and perform the rotation.

Three Sum

Given an array of numbers, the task is to find all combinations of three numbers from the array such that their sum equals a given target value.