« first day (3618 days earlier)      last day (1522 days later) » 

19:14
I think Julia indexes from 1 as well
OH. that explains why some of my stuff was failing
i know julia ranges are left-right inclusive but it was causing index errors
Ah, very impressive you fixed it!
I can compare the start of your output with the Julia code in 5 minutes
@HyperNeutrino hmm. you code seems to output a list of None's
the output should start "aaaaaaaa"
"\taaaaaaaa"
"\naaaaaaaa"
wait. yeah uh
i didn't do that part right, lemme just fix up everything
thanks!
@anush hopefully this is right? fixed the ranges and index access and also removed the Nones
(the contents were after the Nones; i initialized the array to a certain length but then just appended anyway)
19:26
I
I can check in 40 minutes. Thanks again!
alright. np!
19:48
back sooner than expected :)
@HyperNeutrino What type is Find()? I can't do len(Find())
that code fails with:
should be a list?
ignore the above. jupyter lab was being weird
it is the right length!
ah. okay
you can't run the code twice
I assume because of global variables?
oh. yeah that's cuz currentlength is global because python scoping
if you set it back to 8 at the beginning of Find() that should work
19:53
argh! TabError: inconsistent use of tabs and spaces in indentation
:)
I am timing it now
oh lol. yeah i press TAB but i prefer spaces so my editors usually are set to convert to spaces
181ms . that's pretty good!
not on tio though so it ends up being true tabs
what is the gist giving me? Is it true tabs?
i think so.
19:55
the only way I could fix it was by copying and pasting the tabs (in jupyter lab)
do you understand the code?
why is for Pos1 in jrange(1, CurrLen - 1): indexing from 1 for example?
 
3 hours later…
22:49
1
Q: Are compile-time solutions valid?

userI have a couple answers here that work at compile-time and just posted another, and I was wondering if such solutions are allowed. I'm not talking about just proper functions that can run at compile-time, such as constexpr in C++, but also stuff like types that take type parameters and return oth...

23:05
0
Q: Polynomial Laplace transform

caird coinheringaahingThis is a repost of this challenge, intended to revamp it for looser I/O formats and updated rules You are to write a program which takes an integer polynomial in \$t\$ as input and outputs the Laplace transform of this polynomial. Some definitions and properties: The Laplace transform of a give...

23:41
tfw your mathematics is shorter in Retina than JavaScript

« first day (3618 days earlier)      last day (1522 days later) »