Given: A string s of length at most 200 letters and four integers a, b, c and d.

Return: The slice of this string from indices a through b and c through d (with space in between), inclusively.

Recommended Answers

Wrong thread. Post it here Click Here.

Jump to Post

All 2 Replies

Member Avatar

The rules specifically state "Do provide evidence of having done some work yourself if posting questions from school or work assignments"

Please show the code you have so far and explain where you are stuck, then you might recieve some help. I've had to write this so many times that I might as well save it for copy and pasting later.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.