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

Get sub-list with given sum #87

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

Get sub-list with given sum #87

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

Comments

@shorodilov
Copy link
Member

shorodilov commented May 14, 2023

Write a function that takes a list and a target number as parameters and returns a sub-list to get this number. Return an empty list if not possible.

Optional:
return a sub-list to get the closest one possible value.

@shorodilov shorodilov added this to the Basics milestone May 14, 2023
@shorodilov shorodilov added the assignment Represents a challenge for homework or exam label May 14, 2023
@shorodilov shorodilov self-assigned this May 14, 2023
@shorodilov
Copy link
Member Author

shorodilov commented May 14, 2023

Look at similar solution:

def get_target_numbers(target: int, numbers: List[int]) -> Optional[List[int]]:

@shorodilov shorodilov changed the title Get sublist with given sum Get sub-list with given sum May 15, 2023
@shorodilov shorodilov moved this to 🆕 New in Assignments Aug 22, 2023
@shorodilov shorodilov removed their assignment Oct 13, 2023
@tarun212001
Copy link
Contributor

Hi @shorodilov I would like to work on it as well. Please let me know what i should do. Thankyou

@shorodilov shorodilov moved this from 🆕 New to 📋 Backlog in Assignments Nov 30, 2023
@shorodilov
Copy link
Member Author

Hi @tarun212001, it's yours.

The development process follows GitFlow guidelines.
The devel branch is the storage for the most recent code. Just create a new feature branch from it, and open a PR back to it once the implementation is finished.

Where to store the code? It depends on the exact approach you're using. For now there are memoization and tabulation modules available. You may create your own some where within dynamic package. Just be careful with imports while testing your code.

This ticket is related to dynamic programming technique, which may be challenging for new comers.
Please let me know in case you need some additional assistance.

This was referenced Nov 30, 2023
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