Skip to main content
Home › Blog › #arrays
Tag

#arrays

20 articles
Can you explain how you would use NumPy to perform element-wise operations on two arrays?

In NumPy, element-wise operations can be performed directly using arithmetic operators between arrays of the same shape. For example, if you have two NumPy arrays, adding them together will result…

🏷️
Can you explain what a Tensor is in TensorFlow and why it’s fundamental to its operation?

A Tensor in TensorFlow is a multi-dimensional array that holds data. It’s fundamental because all operations in TensorFlow are based on these Tensors, which can represent various types of data…

🏷️
Can you explain what a slice is in Go and how it differs from an array?

A slice in Go is a dynamically-sized, flexible view into the elements of an array. Unlike arrays, which have a fixed size, slices can grow and shrink, allowing for more…

🏷️
Can you explain what a NumPy array is and how it’s different from a Python list?

A NumPy array is a homogeneously typed multidimensional array that provides efficient storage and operations on large datasets, unlike Python lists which can hold mixed data types and are less…

🏷️
Can you explain what an array is in C# and how it differs from a list?

An array in C# is a fixed-size collection of elements of the same type, while a list is a dynamic collection that can grow or shrink in size. Arrays are…

🏷️
Can you explain how slices work in Go and how they differ from arrays?

In Go, slices are a more flexible alternative to arrays. While arrays have a fixed size determined at the time of declaration, slices can grow and shrink dynamically, making them…

🏷️
Can you explain how the spread operator works in JavaScript and provide a use case where it greatly simplifies code?

The spread operator in JavaScript allows an iterable such as an array or string to be expanded in places where zero or more arguments or elements are expected. A common…

🏷️
How would you choose between using an array or a linked list for a data structure that requires frequent insertions and deletions?

For frequent insertions and deletions, I would choose a linked list. This is because linked lists allow for O(1) time complexity for adding or removing nodes, while arrays require O(n)…

🏷️
2,000 Interview Questions and Answers PDF cover
Developer Interview Kit · PDF

2,000 Interview Questions & Answers, in one PDF

  • Short answers, in-depth explanations, common mistakes and follow-ups
  • 89 topics, from Beginner to Architect, with a clickable contents list
  • 226 extra questions that are not on this website
  • Free Bonus Pack: 30-day study plan, behavioral questions, salary scripts
$7.99 one-time · instant email delivery
260 Developer Learning Paths cover
Also available: 260 Developer Learning Paths $4.99 Week-by-week roadmaps for 16 career tracks (Python, React, Java, DevOps, SQL, AI and more), with a progress tracker on every path. See what's inside →

Get both books for $9.99 (save $2.99):

The material stays free to read online. This is the organised, offline, print-ready PDF edition. Secure payment by PayPal; your personal download link is emailed after payment is confirmed. Digital product, no shipping.