Skip to content
#

codewars-kata-solution

Here are 282 public repositories matching this topic...

Write a function that takes an array of numbers (integers for the tests) and a target number. It should find two different items in the array that, when added together, give the target value. The indices of these items should then be returned in a tuple / list (depending on your language) like so: (index1, index2). For the purposes of this kata,…

  • Updated Jul 6, 2022
  • JavaScript

Improve this page

Add a description, image, and links to the codewars-kata-solution topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the codewars-kata-solution topic, visit your repo's landing page and select "manage topics."

Learn more