lexicographically_next_string

package
v0.0.0-...-d7cbdf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: CC0-1.0, CC-BY-SA-4.0 Imports: 1 Imported by: 0

README

Lexicographically next string

Given a string, find lexicographically next string. If string is empty, we return ‘a’. If string contains all characters as ‘z’, we append ‘a’ at the end. Otherwise we find first character from end which is not z and increment it.

This problem is based on content from GeeksforGeeks written by GeeksforGeeks and subject to GeeksforGeeks copyright. The original content from GeeksforGeeks and any modifications made here are attributed to GeeksforGeeks contributors, and this work is shared under CC BY-SA 4.0.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Solution

func Solution(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL