Christian Schröder
5
5
Rank91
91
Badges52027
52027
Score
Christian Schröder submitted Solution 14615353 to Problem 60852. Zero Out Negative Elements 8 hours and 8 minutes ago |
Christian Schröder submitted Solution 14613852 to Problem 60851. Find the closest e-abundant numbers on 19 Apr 2025 at 7:06 |
Christian Schröder submitted a Comment to Problem 60850. Matrix Diagonal Sum Nice problem! But test cases 5 and 6 appear to be wrong: the answer should be 117, not 135.
on 16 Apr 2025 at 6:46 |
Christian Schröder submitted Solution 14610822 to Problem 60850. Matrix Diagonal Sum on 16 Apr 2025 at 6:45 |
Christian Schröder submitted Solution 14610025 to Problem 60849. Permuted Multiples: Project Euler Problem 52 on 15 Apr 2025 at 21:06 |
Christian Schröder submitted Solution 14608381 to Problem 60847. Create a fibonacci series on 14 Apr 2025 at 12:33 |
Christian Schröder submitted Solution 14608379 to Problem 60847. Create a fibonacci series on 14 Apr 2025 at 12:26 |
Christian Schröder submitted Solution 14607440 to Problem 60840. 4D Hypercube Validation with Prime-Indexed Symmetry and Modular Trace Constraints on 13 Apr 2025 at 9:48 |
Christian Schröder liked Problem 60839. List the notes of a major scale on 12 Apr 2025 at 20:01 |
Christian Schröder submitted Solution 14607088 to Problem 60845. Sum powers of e-divisors on 12 Apr 2025 at 19:41 |
Christian Schröder submitted Solution 14605175 to Problem 60844. Count the e-divisors of an integer on 10 Apr 2025 at 4:48 |
Christian Schröder submitted Solution 14603895 to Problem 60841. Count Vowels at Even Indices on 9 Apr 2025 at 6:12 |
Christian Schröder submitted Solution 14603889 to Problem 60843. Determine the e-divisors of an integer on 9 Apr 2025 at 6:02 |
Christian Schröder submitted Solution 14603878 to Problem 60842. Test x = 1 on 9 Apr 2025 at 5:46 |
Christian Schröder submitted Solution 14603124 to Problem 60841. Count Vowels at Even Indices on 8 Apr 2025 at 17:42 |
Christian Schröder submitted Solution 14603116 to Problem 60841. Count Vowels at Even Indices on 8 Apr 2025 at 17:36 |
Christian Schröder submitted Solution 14602382 to Problem 60743. Bit Stream conversion to Audio Frequency Shift Key using Bell 202 (Modem) on 7 Apr 2025 at 19:52 |
Christian Schröder submitted Solution 14602376 to Problem 60834. Bell 202 Decoder on 7 Apr 2025 at 19:39 |
Christian Schröder submitted a Comment to Problem 60839. List the notes of a major scale Nice problem, Chris! One small point: in your description of a major scale, I think it should be three whole steps after going from E to F, not two.
on 6 Apr 2025 at 18:43 |
Christian Schröder submitted Solution 14601584 to Problem 60839. List the notes of a major scale on 6 Apr 2025 at 18:42 |
Christian Schröder submitted Solution 14601582 to Problem 60838. Given length x find the area y of the square on 6 Apr 2025 at 18:28 |
Christian Schröder submitted Solution 14595331 to Problem 60837. Project Euler Problem 48: Self Powers on 2 Apr 2025 at 7:52 |
Christian Schröder submitted Solution 14595330 to Problem 60837. Project Euler Problem 48: Self Powers on 2 Apr 2025 at 7:51 |
Christian Schröder submitted Solution 14593765 to Problem 60835. Prime Numbers on 1 Apr 2025 at 7:53 |
Christian Schröder submitted Solution 14591320 to Problem 60836. Integer Division Without Remainder on 31 Mar 2025 at 20:57 |
Christian Schröder submitted a Comment to Problem 60835. Prime Numbers The test suite's broken, and the problem cannot be solved without hacking.
BTW, if you fix the test suite, I'd also suggest adding more test cases.
on 31 Mar 2025 at 20:55 |
Christian Schröder submitted Solution 14591314 to Problem 60835. Prime Numbers on 31 Mar 2025 at 20:54 |
Christian Schröder submitted Solution 14588955 to Problem 60832. Diagonal of a Golden Rectangle on 28 Mar 2025 at 18:56 |
Christian Schröder submitted Solution 14588954 to Problem 60832. Diagonal of a Golden Rectangle on 28 Mar 2025 at 18:55 |
Christian Schröder submitted Solution 14588953 to Problem 60831. "Identify and Replace Outliers in a Numeric Array" on 28 Mar 2025 at 18:52 |
Christian Schröder submitted Solution 14588951 to Problem 60831. "Identify and Replace Outliers in a Numeric Array" on 28 Mar 2025 at 18:50 |
|
Christian Schröder submitted Solution 14588950 to Problem 60831. "Identify and Replace Outliers in a Numeric Array" on 28 Mar 2025 at 18:49 |
Christian Schröder submitted Solution 14583086 to Problem 60830. Compute the saturation concentration for dissolved oxygen in water on 23 Mar 2025 at 10:32 |
Christian Schröder submitted a Comment to Problem 60826. Identify Similar Rows in a Matrix Based on Sequence of Non-zero Elements Thanks, William. I'm unsure how the problem description could be understood such that there is ever a case where a row (even an all-zero row) is not similar to itself, but unless and until the author provides clarification we may never know what's intended.
To the author: I would also suggest that when checking whether a matrix is empty, you use isempty(...) rather than isequal(..., []) since the latter also checks the size, and [] is specifically a 0×0 matrix.
on 22 Mar 2025 at 10:47 |
Christian Schröder submitted Solution 14582368 to Problem 60826. Identify Similar Rows in a Matrix Based on Sequence of Non-zero Elements on 22 Mar 2025 at 10:44 |
Christian Schröder submitted a Comment to Problem 1092. Decimation @Jason the key realization that'll address all the concerns you raise is that you shouldn't think of decimation as happening in discrete rounds to begin with.
Instead, imagine that the prisoners are standing in a circle, and Carnage Maximus is standing in the middle, pointing to each living prisoner in turn. When the number of times he has pointed is divisible by kill_every, then that prisoner is taken away to be executed, and the decimation process continues. The circle is now smaller - but Carnage Maximus is ignorant of this and simply keeps on pointing.
In other words, in the example, you start with this sequence of prisoners (this is what you'd get if you pointed to each person in the circle in term, without ever taking anyone away):
1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 ...
After 3, 6 and 9 have been removed - with Carnage Maximus still pointing at the empty spot where 9 used to stand -, the circle is now
1 2 4 5 7 8 . 10 1 2 4 5 7 8 10 1 2 4 5 7 8 10 1 2 ...
and the . is where Carnage Maximus is pointing. Moving on, the 3rd and 6th prisoners he points to next are 2, 7, so the circle is now
1 4 5 . 8 10 1 4 5 8 10 1 4 5 8 10 ...
Now the 3rd and 6th prisoners he'll point to next are 1 and 8, after which the circle is
4 5 . 10 4 5 10 4 5 10 ...
Then 5 is removed next,
4 . 10 4 10 4 10 ...
and after that 10 is removed, leaving 4. I hope that this clears up what's happening and why it does, in fact, make perfect sense!
on 20 Mar 2025 |
Christian Schröder submitted Solution 14581366 to Problem 60829. Basic Identity Function on 20 Mar 2025 |
Christian Schröder submitted Solution 14581365 to Problem 60828. Remove Duplicate Words from a Sentence. on 20 Mar 2025 |
Christian Schröder submitted a Comment to Problem 60826. Identify Similar Rows in a Matrix Based on Sequence of Non-zero Elements I'm not sure I understand your notion of similarity. Suppose we've got rows r1 and r2, and let r1n and r2n denote r1 and r2 with trailing zeros removed. By your first condition, for r1 and r2 we must have that r1n equals r2n. But since the remainder of r1 and r2 is zeros, this implies that r1 and r2 are also equal, yet this is clearly not what the test suite expects.
I don't think that this can be cured by reading the problem description differently either. In particular, your test suite indicates that for a zero matrix, the result should be empty, yet I cannot conceive of a sensible notion of similarity by which the first row is not similar to itself.
I also would like to point out that in your solution template (which does not pass the test suite) what the code does is at odds with what the comments say it does.
on 20 Mar 2025 |
Christian Schröder submitted a Comment to Problem 60822. Calculate the Number of Moles Mass is moles times molar mass, not moles divided by molar mass - or perhaps you meant to write Moles = Mass (g) / Molar Mass (g/mol).
Also, the test suite expects solutions to return 0 when a molar mass of zero is provided, not Inf.
on 19 Mar 2025 |
Christian Schröder submitted Solution 14580383 to Problem 60821. Remove Duplicate Words from a Sentence on 19 Mar 2025 |
Christian Schröder submitted Solution 14580379 to Problem 60822. Calculate the Number of Moles on 19 Mar 2025 |
Christian Schröder submitted Solution 14580373 to Problem 60823. Sum of Even Numbers in a Vector on 19 Mar 2025 |
Christian Schröder submitted Solution 14579236 to Problem 60819. Sum of Positive Elements in a Matrix on 18 Mar 2025 |
Christian Schröder submitted a Comment to Problem 70. Alphabetize by last name @Brent the extra space is be immaterial: it's outside the string. The problem with your earlier non-scoring solutions is the "F." in "John F. Kennedy", which your solutions mistakenly removed
on 17 Mar 2025 |
Christian Schröder submitted Solution 14576754 to Problem 42915. How Far Can You Throw Something? on 16 Mar 2025 |
Christian Schröder submitted a Comment to Problem 44958. Crop an Image @Rich imcrop() is part of the Image Processing Toolbox, and toolboxes are not available on Cody.
on 12 Mar 2025 |
Christian Schröder submitted Solution 14573263 to Problem 60816. Add 2 to any number. on 11 Mar 2025 |
Christian Schröder received Community Group Solver badge for YouTube-inspired on 9 Mar 2025 |