New answers tagged strings
3
votes
A simple C++ function converting the environment variables in main() to an unordered_map
Structured binding
One point not raised by previous reviews: the code would be cleaner using a structured binding in your loop over the map contents. As well as making the key and value ...
3
votes
A simple method for compressing white space in text (Java) - Take II
Just some remarks.
By providing a capacity: new StringBuilder(textLength) - here a bit extra room, you prevent internal array resizing inside StringBuilder. For ...
Top 50 recent answers are included
Related Tags
strings × 2976java × 644
python × 490
c × 415
c++ × 414
performance × 377
algorithm × 359
beginner × 326
c# × 320
programming-challenge × 217
javascript × 216
python-3.x × 136
parsing × 133
array × 127
regex × 125
interview-questions × 102
formatting × 98
php × 87
reinventing-the-wheel × 87
c++11 × 72
comparative-review × 66
search × 65
file × 61
ruby × 56
random × 55