avinash201199 / avinash201199/DSA-Questions

Finding the smallest letter greater than the target in Java

Open
#203 0 comments 0 reactions 1 assignee Claimed by @SwatiSrivastava216 View on GitHub
hacktoberfest
Dominant language
C++
Stars
88
Forks
167
PR merge metrics
No merged PRs in 30d

Description

Given a characters array (arr) that is sorted in non-decreasing order and a character (key), return the smallest character in the array that is larger than the key.

Sample Input:
arr = ["c","f","j"]
key = "a"

Sample Output:
"c"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.