Similar Collections


In Ruby, arrays are ordered, integer-indexed collections of any object. The indexing of an array starts at 0. A new array can be created by using the literal constructor []. Arrays can contain different types of objects. For example, the array below contains an Integer, a String and a Float.

This study list contains Ruby arrays programs, practice these Ruby programs to learn the concept of Ruby arrays, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Ruby arrays programs.

questions

Title
Ruby program to sort an array in ascending order using selection sort
Ruby program to sort an array in descending order using selection sort
Ruby program to sort an array in ascending order using quick sort
Ruby program to sort an array in ascending order using bubble sort
Ruby program to sort an array in descending order using bubble sort
Ruby program to sort an array in ascending order using insertion sort
Ruby program to sort an array in descending order using insertion sort
Ruby program to cyclically permutes the elements of the array
Ruby program to delete an item from the array without using the library function
Ruby program to insert an item into the array without using library function
Ruby program to merge two integer arrays without using library function
Ruby program to read and print two-dimensional array
Ruby program to calculate the sum of matrix elements
Ruby program to add two matrices
Ruby program to calculate the sum of rows of matrix elements
Ruby program to calculate the sum of columns of matrix elements
Ruby program to print the transpose matrix
Ruby program to print the left diagonal matrix
Ruby program to print the right diagonal matrix
Ruby program to calculate the sum of left diagonal the matrix
total questions: 81

Questions

81

Views

890

Best Answers

299

Points

5