Skip to main content

Questions tagged [strings]

A string is a sequence of characters. It is commonly used to represent text or a sequence of bytes. Use this tag along with the appropriate programming language being used.

3 votes
1 answer
141 views

I've been working on a string library in C with C++ standard features of std::basic_string<char> just for learning purposes. It's called cstring and the full ...
Abhiram's user avatar
  • 31
4 votes
4 answers
379 views

I was making a program that created several words in a list, and this made me think about trying to create a function that takes the closest words to a certain target, returning all the correct ...
Unknown's user avatar
  • 155
5 votes
3 answers
581 views

Foreword After a couple years of a hiatus from programming in modern C++ going back to C++17, I am staring to get back into the swing of things. I then decided to start work on this nifty little set ...
Francis Cugler's user avatar
4 votes
3 answers
535 views

Intro In this post, I will elaborate on A simple method for compressing white space in text (Java). Here, I have incorporated some advice offered by Chris. Also, this version preserves a single new ...
coderodde's user avatar
  • 34.2k
6 votes
1 answer
581 views

(The story continues in A simple method for compressing white space in text (Java) - Take II.) Intro Now I have that text space compressor. For example, ...
coderodde's user avatar
  • 34.2k
7 votes
1 answer
310 views

A simple random password generator in C#. Looking for any improvements around speed or design. Any char[] can be passed to choose random chars from. The array I ...
Short Int's user avatar
  • 782
2 votes
2 answers
129 views

Intro I call two \$n\$-strings \$s\$ and \$z\$ over the alphabet \$\Sigma\$ weakly isomorphic if their character frequency multisets are equal. In other words, for an input strings \$s\$, we derive a ...
coderodde's user avatar
  • 34.2k
10 votes
3 answers
1k views

Intro This snippet is a translation of the Java version. Code string_util.hpp: ...
coderodde's user avatar
  • 34.2k
4 votes
1 answer
198 views

Intro Two \$n\$-strings \$s = \langle s_1 \ldots s_n \rangle \$ and \$z = \langle z_z \ldots z_n \rangle\$ are considered isomorphic if and only if there exists a bijection \$f\$ such that for all \$...
coderodde's user avatar
  • 34.2k
6 votes
1 answer
315 views

Before I started, we had a few long introductory texts that were shown to users in different part of the editor window, depending on what type of object they are editing. The texts describe how to add ...
Lecker Kebap's user avatar
5 votes
2 answers
121 views

(See the previous and initial iteration.) Intro This time, I decided to pack the genomic data such that 4 nucleotide bases are encoded into a single byte. In other words, ...
coderodde's user avatar
  • 34.2k
4 votes
1 answer
120 views

(See the next iteration.) This time I have programmed a simple data structure called \$k\$-mer index. The actual word \$k\$-mer is a synonym of substring of length \$k\$. This data structure is built ...
coderodde's user avatar
  • 34.2k
6 votes
1 answer
431 views

I wrote this both to help read (and edit/summarize) my own work, but mainly to be able to get through the mounds of papers I was asked to read as a graduate student. This is a summarization algorithm ...
Charles G's user avatar
  • 113
3 votes
1 answer
142 views

This is something I've been writing for a paper I'm working on. There is a debate about what is formal text and what is not, but what I know about myself and my writing is that I use certain words (...
Charles G's user avatar
  • 113
5 votes
1 answer
354 views

You can see it live here: https://flatassembler.github.io/multiplying-strings-aec.html ...
FlatAssembler's user avatar

15 30 50 per page
1
2 3 4 5
199