Skip to content

design a backward algorithm to produce the shortest string#44

Merged
jaja360 merged 2 commits into
masterfrom
produce_shortest
Jun 27, 2025
Merged

design a backward algorithm to produce the shortest string#44
jaja360 merged 2 commits into
masterfrom
produce_shortest

Conversation

@lemire
Copy link
Copy Markdown
Member

@lemire lemire commented Jun 24, 2025

Basically, we take std::to_chars and we 'patch' the output. This is not going to be reasonable for practical use or ever very fast... but it is useful because it validates our understanding and gives us data about what happens if we generate the very shortest string.

@lemire lemire requested a review from jaja360 June 24, 2025 18:29
"1.23e+004" now becomes "1.23e4" instead of staying the same
@lemire
Copy link
Copy Markdown
Member Author

lemire commented Jun 27, 2025

@jaja360 Merge if you approve.

@jaja360 jaja360 merged commit 9515ce4 into master Jun 27, 2025
8 checks passed
@jaja360 jaja360 deleted the produce_shortest branch June 27, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants