aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Schneider <atschneider@temple.edu>2024-06-16 07:09:45 -0400
committerAndrew Schneider <atschneider@temple.edu>2024-06-16 07:09:45 -0400
commit9b1ef4cf7c63abd20dcb8cd23dae942f46ac65f7 (patch)
tree7563dcb6f6a921a0484165fb27be9211fda10ca6
parentafa0ba15afa6fb204e91279cb4a3fa5baf6015fe (diff)
downloadperlweeklychallenge-club-9b1ef4cf7c63abd20dcb8cd23dae942f46ac65f7.tar.gz
perlweeklychallenge-club-9b1ef4cf7c63abd20dcb8cd23dae942f46ac65f7.tar.bz2
perlweeklychallenge-club-9b1ef4cf7c63abd20dcb8cd23dae942f46ac65f7.zip
math formatting
-rw-r--r--challenge-273/atschneid/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-273/atschneid/README.md b/challenge-273/atschneid/README.md
index f206a9f355..e9505d1d6a 100644
--- a/challenge-273/atschneid/README.md
+++ b/challenge-273/atschneid/README.md
@@ -4,7 +4,7 @@
Being a stream of consciousness write up of some details of my code for [PWC 273](https://theweeklychallenge.org/blog/perl-weekly-challenge-273/)
-The challenges this week seemed pretty straightforward. Both of them have pretty direct solutions based on an algorithm of walking along a string, character by character, setting some flag variables or counts. In both cases it was simple to come up solutions that go through each string exactly one time, clearly in $\mathcal{O}(n)$ for $n = |\mathtext{string}|$.
+The challenges this week seemed pretty straightforward. Both of them have pretty direct solutions based on an algorithm of walking along a string, character by character, setting some flag variables or counts. In both cases it was simple to come up solutions that go through each string exactly one time, clearly in $\mathcal{O}(n)$ for $n = |string|$.
So it is basically impossible to find a better algorithm. But I needed to remind myself that that is *boring!* For one, I try to make my solutions in different languages as different as possible, and just transcribing the same code into different syntax would not be that. And this is supposed to be a chance to do something fun, learn something new.