import unittest


def dictionary_search(arr: list, target: int):
    dict = {}
    for i, ele in enumerate(arr):
        dict[ele] = i
    for i, ele in enumerate(arr):
        if target - ele in dict and i != dict[target - ele]:
            return [i, dict[target - ele]]


class TestClass(unittest.TestCase):

    def test_case_one(self):
        self.assertEqual(dictionary_search([2, 7, 11, 15], 9), [0, 1])

    def test_case_two(self):
        self.assertEqual(dictionary_search([3, 2, 4], 6), [1, 2])

    def test_case_thr(self):
        self.assertEqual(dictionary_search([3, 3], 6), [0, 1])

    def test_case_four(self):
        self.assertEqual(dictionary_search([3, 2, 3], 6), [0, 2])

426117646a0ce18d5c7665fc3441b3eb5c1c2dcb
<mask token>


class TestClass(unittest.TestCase):

    def test_case_one(self):
        self.assertEqual(dictionary_search([2, 7, 11, 15], 9), [0, 1])
    <mask token>
    <mask token>

    def test_case_four(self):
        self.assertEqual(dictionary_search([3, 2, 3], 6), [0, 2])

<mask token>


class TestClass(unittest.TestCase):

    def test_case_one(self):
        self.assertEqual(dictionary_search([2, 7, 11, 15], 9), [0, 1])

    def test_case_two(self):
        self.assertEqual(dictionary_search([3, 2, 4], 6), [1, 2])
    <mask token>

    def test_case_four(self):
        self.assertEqual(dictionary_search([3, 2, 3], 6), [0, 2])

<mask token>


def dictionary_search(arr: list, target: int):
    dict = {}
    for i, ele in enumerate(arr):
        dict[ele] = i
    for i, ele in enumerate(arr):
        if target - ele in dict and i != dict[target - ele]:
            return [i, dict[target - ele]]


class TestClass(unittest.TestCase):

    def test_case_one(self):
        self.assertEqual(dictionary_search([2, 7, 11, 15], 9), [0, 1])

    def test_case_two(self):
        self.assertEqual(dictionary_search([3, 2, 4], 6), [1, 2])

    def test_case_thr(self):
        self.assertEqual(dictionary_search([3, 3], 6), [0, 1])

    def test_case_four(self):
        self.assertEqual(dictionary_search([3, 2, 3], 6), [0, 2])

import unittest


def dictionary_search(arr: list, target: int):
    dict = {}
    for i, ele in enumerate(arr):
        dict[ele] = i
    for i, ele in enumerate(arr):
        if target - ele in dict and i != dict[target - ele]:
            return [i, dict[target - ele]]


class TestClass(unittest.TestCase):

    def test_case_one(self):
        self.assertEqual(dictionary_search([2, 7, 11, 15], 9), [0, 1])

    def test_case_two(self):
        self.assertEqual(dictionary_search([3, 2, 4], 6), [1, 2])

    def test_case_thr(self):
        self.assertEqual(dictionary_search([3, 3], 6), [0, 1])

    def test_case_four(self):
        self.assertEqual(dictionary_search([3, 2, 3], 6), [0, 2])
