HarshCasper / NeoAlgo

Bringing all Data Structures and Algorithms under one Roof âš¡
MIT License
875 stars 1.05k forks source link

Wrapping Letters #1804

Closed ErzaTitania-2001 closed 3 years ago

ErzaTitania-2001 commented 3 years ago

🚀 Feature

Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list that is larger than the given target. Letters also wrap around. Input : ch='z' ; letters= ['a', 'b'] Output : a

Input : ch = 'a' ; letters = ['c', 'd', 'j'] Output : c

Have you read the Contributing Guidelines on Pull Requests?

Yes

Motivation

Competitive Programming

Pitch

Interview Questions.

ErzaTitania-2001 commented 3 years ago

@shraddhavp can i be assigned in Java?

shraddhavp commented 3 years ago

assigned @ErzaTitania-2001

shraddhavp commented 3 years ago

what is the label you want me to add? DWOC OR WOC?

ErzaTitania-2001 commented 3 years ago

Java, C++, Python.

On Wed, 30 Dec, 2020, 6:37 PM Shraddha, notifications@github.com wrote:

what is the label you want me to add?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TesseractCoding/NeoAlgo/issues/1804#issuecomment-752573534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJCY2DOU2T2QP5GAJTDACTSXMQ2XANCNFSM4VOCDAHA .

shraddhavp commented 3 years ago

no i meant is this a part of dwoc or woc?

ErzaTitania-2001 commented 3 years ago

Woc

On Wed, 30 Dec, 2020, 6:43 PM Shraddha, notifications@github.com wrote:

no i meant is this a part of dwoc or woc?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TesseractCoding/NeoAlgo/issues/1804#issuecomment-752580877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJCY2BCU6NGDILSCZO54YTSXMRQ5ANCNFSM4VOCDAHA .