Skip to content

Instantly share code, notes, and snippets.

@inspector-ambitious
Last active May 18, 2022 09:45
Show Gist options
  • Select an option

  • Save inspector-ambitious/ce36a50fb554978837596a8b92c3fdcb to your computer and use it in GitHub Desktop.

Select an option

Save inspector-ambitious/ce36a50fb554978837596a8b92c3fdcb to your computer and use it in GitHub Desktop.
Ruby_test.md

Exercise 1

Write a method that compute the sum of all the elements of an array of integers.

Example

input: [1, 2, 2, 3, 3, 4, 5, 6, 5, 7, 7, 7, 8, 8, 1] output: 69

Exercise 2

Write a method to reverse a string.

Example

input: "abcde" output: "edcba"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment