Questions tagged [string]

A competition to solve a particular problem through the usage and manipulation of strings.

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
239 views

Generate Menu Access Keys

This is thematically similar to Generate keyboard shortcuts for a menu, but its actually a pretty different challenge. Let's take PHPStorm's menu as an example: ...
9
votes
0answers
234 views

Expand the variadic expression

One of the cool features introduced in the C++11 standard is the ability to declare a template parameter as being variadic; i.e. that parameter represents a sequence of an arbitrary number of ...
4
votes
0answers
187 views

Test the endianness

Given a UTF-16 string, test its endianness. Rules: As long as the input is in UTF-16 without BOM, its type doesn't matter. In C++ on Windows, it can be ...
2
votes
0answers
143 views

Construct the suffix automaton

In computer science, a suffix automaton is the smallest partial deterministic finite automaton that recognizes the set of suffixes of a given string. (Wikipedia) Given a string \$S\$ consisting of ...