CodeSignal

Multidimensional Arrays and Their Traversal in C#

Développez des compétences très recherchées grâce à un abonnement d'un an à Coursera Plus, désormais à 239 $. Profitez-en dès maintenant.

Ce cours n'est pas disponible en Français (France)

Nous sommes actuellement en train de le traduire dans plus de langues.
CodeSignal

Multidimensional Arrays and Their Traversal in C#

Inclus avec Coursera PlusEn savoir plus

Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Avancées

Expérience recommandée

5 heures à compléter
Planning flexible
Apprenez à votre propre rythme
Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Avancées

Expérience recommandée

5 heures à compléter
Planning flexible
Apprenez à votre propre rythme

Détails à connaître

Certificat partageable

Ajouter à votre profil LinkedIn

Récemment mis à jour !

novembre 2026

Évaluations

2 devoirs

Enseigné en Anglais

Élaborez votre expertise du sujet

Ce cours fait partie de la Spécialisation "Advanced Coding Interview Preparation with C#"
Lorsque vous vous inscrivez à ce cours, vous êtes également inscrit(e) à cette Spécialisation.
  • Apprenez de nouveaux concepts auprès d'experts du secteur
  • Acquérez une compréhension de base d'un sujet ou d'un outil
  • Développez des compétences professionnelles avec des projets pratiques
  • Obtenez un certificat professionnel partageable

Il y a 5 modules dans ce cours

This lesson introduces the concept of multidimensional arrays in C#, using an apartment building analogy to explain their structure. It covers creating, indexing, and traversing these arrays, updating their elements, and adding or removing rows and columns. Practical examples illustrate how to use methods like GetLength and control flow statements such as break and continue in nested loops to manage multidimensional arrays effectively.

Inclus

6 éléments d'application

This lesson focuses on exploring special traversal patterns in multidimensional arrays using C#. It guides you through creating a function to traverse a 2D array in a zigzagging columnar pattern, starting from the bottom-right cell. The lesson also covers understanding matrix dimensions, setting starting points, and using loops and control structures to achieve the desired traversal. Additionally, it includes an alternative reverse traversal method utilizing decrementing loops, enhancing your proficiency in array manipulation and traversal in C#.

Inclus

6 éléments d'application

This lesson teaches you how to transpose a matrix using C#. It walks through identifying matrix dimensions, creating a new transposed matrix, and using nested loops to switch the rows and columns of the original matrix. The lesson includes step-by-step code examples and concludes with a functional C# program that demonstrates the matrix transposition process.

Inclus

1 devoir6 éléments d'application

This lesson teaches you how to identify optimal positions for placing game pieces on a 2D array (like a chessboard) in C#, ensuring that each piece can move to a neighboring empty cell. It includes step-by-step instructions to create and traverse the 2D array, check conditions for empty cells, and collect valid positions using lists and control structures. The lesson emphasizes practical C# coding practices and concludes with a functional program demonstrating the solution.

Inclus

6 éléments d'application

This lesson dives into the traversal of 2D arrays in C#, focusing on a specific pattern where movement is only allowed to adjacent cells with higher values. The task involves creating a function, PathTraverse, which starts at a given cell and continues navigating to higher-valued neighboring cells until no valid moves remain. The lesson covers grid dimension handling, direction setup, loop implementation for traversal, and the final collection of visited cell values, culminating in a practical C# code example.

Inclus

1 devoir6 éléments d'application

Obtenez un certificat professionnel

Ajoutez ce titre à votre profil LinkedIn, à votre curriculum vitae ou à votre CV. Partagez-le sur les médias sociaux et dans votre évaluation des performances.

Instructeur

CodeSignal Certificates
CodeSignal
7 Cours75 apprenants

Offert par

CodeSignal

Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?

Felipe M.

Étudiant(e) depuis 2018
’Pouvoir suivre des cours à mon rythme à été une expérience extraordinaire. Je peux apprendre chaque fois que mon emploi du temps me le permet et en fonction de mon humeur.’

Jennifer J.

Étudiant(e) depuis 2020
’J'ai directement appliqué les concepts et les compétences que j'ai appris de mes cours à un nouveau projet passionnant au travail.’

Larry W.

Étudiant(e) depuis 2021
’Lorsque j'ai besoin de cours sur des sujets que mon université ne propose pas, Coursera est l'un des meilleurs endroits où se rendre.’

Chaitanya A.

’Apprendre, ce n'est pas seulement s'améliorer dans son travail : c'est bien plus que cela. Coursera me permet d'apprendre sans limites.’

Qu’est-ce qui vous amène sur Coursera aujourd’hui ?

Foire Aux Questions