Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Sum of two digits #86

Open
shorodilov opened this issue May 14, 2023 · 2 comments
Open

Sum of two digits #86

shorodilov opened this issue May 14, 2023 · 2 comments
Assignees
Labels
assignment Represents a challenge for homework or exam
Milestone

Comments

@shorodilov
Copy link
Member

shorodilov commented May 14, 2023

In a sorted list of int find two elements with sum of target.
Return these elements within a new list or an empty list in case it's impossible to obtain the target value.

Optional:
return elements with sum which is the most close to the target.

@shorodilov shorodilov added the assignment Represents a challenge for homework or exam label May 14, 2023
@shorodilov shorodilov added this to the Basics milestone May 14, 2023
@shorodilov shorodilov self-assigned this May 15, 2023
@shorodilov shorodilov removed their assignment Oct 13, 2023
@tarun212001
Copy link
Contributor

Hey @shorodilov I would like to work on this issue. Please assign it to me. Please let me know what is needed to solve this issue

@shorodilov
Copy link
Member Author

Hi @tarun212001.

The overall development process is described in comments to #87.
Let me know in case you need help, I'll do my best to provide it.

Solution

To tell you the truth, I did not think about the implementation for this issue.
I believe the best way is to use the sorted nature of the input list. So, bisearch package is the good place to start the work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
assignment Represents a challenge for homework or exam
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants