Brandon
223
223
Rank31
31
Badges6292
6292
Score
Brandon submitted Solution 11611143 to Problem 42406. Divisible by 4 on 27 Jun 2023 |
Brandon submitted Solution 11611063 to Problem 42405. Divisible by 3 on 27 Jun 2023 |
Brandon submitted Solution 11611058 to Problem 42404. Divisible by 2 on 27 Jun 2023 |
Brandon received Cody Challenge Master badge on 27 Jun 2023 |
Brandon submitted Solution 11610918 to Problem 27. Pangrams! on 27 Jun 2023 |
Brandon submitted Solution 11610908 to Problem 28. Counting Money on 27 Jun 2023 |
Brandon submitted Solution 11610728 to Problem 29. Nearest Numbers on 27 Jun 2023 |
Brandon submitted Solution 11610708 to Problem 29. Nearest Numbers on 27 Jun 2023 |
Brandon submitted Solution 11610678 to Problem 30. Sort a list of complex numbers based on far they are from the origin. on 27 Jun 2023 |
Brandon submitted Solution 11610588 to Problem 31. Remove all the words that end with "ain" on 27 Jun 2023 |
Brandon submitted Solution 11610563 to Problem 31. Remove all the words that end with "ain" on 27 Jun 2023 |
Brandon submitted Solution 11609628 to Problem 32. Most nonzero elements in row on 27 Jun 2023 |
Brandon submitted Solution 11609588 to Problem 35. Quote Doubler on 27 Jun 2023 |
Brandon submitted Solution 11609573 to Problem 37. Pascal's Triangle on 27 Jun 2023 |
Brandon submitted Solution 11609493 to Problem 39. Which values occur exactly three times? on 27 Jun 2023 |
Brandon submitted Solution 11608683 to Problem 39. Which values occur exactly three times? on 27 Jun 2023 |
Brandon submitted Solution 11604738 to Problem 40. Reverse Run-Length Encoder on 26 Jun 2023 |
Brandon submitted Solution 11604728 to Problem 42. Find the alphabetic word product on 26 Jun 2023 |
Brandon submitted Solution 11604723 to Problem 43. Subset Sum on 26 Jun 2023 |
Brandon submitted a Comment to Solution 1031317 This is the first correct solution to this problem. It took 4.5 years and 500 wrong solutions for someone to finally get a universal answer.
on 26 Jun 2023 |
Brandon submitted a Comment to Problem 52. What is the next step in Conway's Life? There's a popular solution that is wrong, and people keep posting it. I am highly amused.
on 26 Jun 2023 |
Brandon submitted Solution 11603658 to Problem 44. Trimming Spaces on 26 Jun 2023 |
Brandon submitted Solution 11603398 to Problem 45. Make a Palindrome Number on 26 Jun 2023 |
Brandon submitted Solution 11603383 to Problem 46. Which doors are open? on 26 Jun 2023 |
Brandon submitted a Comment to Solution 11603368 I made a solution explaining the three common approaches to solving the problem. All three solutions have a small Cody size, but have drastically different speeds when implemented in code.
on 26 Jun 2023 |
Brandon submitted Solution 11603368 to Problem 47. Extract leading non-zero digit on 26 Jun 2023 |
Brandon submitted a Comment to Solution 363899 It's a much faster implementation of num2str() than any other solution I have seen. Due to it formatting the inputs and using the second column, it avoids the searching problems that other num2str() solutions often have.
This solution can be further optimized by avoiding the use of num2str() and calling sprintfc() directly.
on 26 Jun 2023 |
Brandon submitted a Comment to Problem 47. Extract leading non-zero digit Today I learned that 0.3/0.1 = 2.999999999 but 0.3*10=3
Floats always keep things... interesting...
on 26 Jun 2023 |
Brandon submitted a Comment to Solution 11101189 How does this solution escape the floating point problem for x=0.3? raising to the negative power seems to be superior than dividing by the positive power?
on 26 Jun 2023 |
Brandon submitted a Comment to Solution 113233 A great example of slow code, this solution takes 4.5 seconds to run through 1000 random numbers. My solution takes a millisecond.
Cody "size" is such a poor measure of good code...
on 26 Jun 2023 |
Brandon submitted Solution 11602973 to Problem 47. Extract leading non-zero digit on 26 Jun 2023 |
Brandon submitted a Comment to Problem 48. Making change A lot of people are adding an amount smaller than a cent to the input to get around floating point issues. There are two other ways to get around this. One is to make the last cent 0.00999 instead. The other is to change your comparison line to compare against a slightly smaller/larger value.
on 23 Jun 2023 |
Brandon submitted a Comment to Solution 1836460 Could have reduced the 1 in a/change(i)>=1 to 0.999 as well.
on 23 Jun 2023 |
Brandon submitted Solution 11594188 to Problem 48. Making change on 23 Jun 2023 |
Brandon submitted Solution 11594123 to Problem 49. Sums with Excluded Digits on 23 Jun 2023 |
Brandon submitted a Comment to Problem 9. Who Has the Most Change? I have tagged this problem as stupid. I encourage others to do the same. This is a place to learn, not to ask trick questions.
on 23 Jun 2023 |
Brandon submitted Solution 11594053 to Problem 9. Who Has the Most Change? on 23 Jun 2023 |
Brandon submitted Solution 11594033 to Problem 9. Who Has the Most Change? on 23 Jun 2023 |
Brandon submitted Solution 11594028 to Problem 9. Who Has the Most Change? on 23 Jun 2023 |
Brandon submitted Solution 11593948 to Problem 9. Who Has the Most Change? on 23 Jun 2023 |
Brandon submitted a Comment to Problem 9. Who Has the Most Change? Can we ban stupid problems like this? Like, how do I report a problem to have it moderated out of existence?
on 23 Jun 2023 |
Brandon submitted Solution 11593928 to Problem 9. Who Has the Most Change? on 23 Jun 2023 |
Brandon submitted Solution 11593903 to Problem 13. Remove all the consonants on 23 Jun 2023 |
Brandon submitted Solution 11593848 to Problem 14. Find the numeric mean of the prime numbers in a matrix. on 23 Jun 2023 |
Brandon submitted Solution 11593608 to Problem 16. Return the largest number that is adjacent to a zero on 23 Jun 2023 |
Brandon submitted Solution 11593583 to Problem 16. Return the largest number that is adjacent to a zero on 23 Jun 2023 |
Brandon submitted Solution 11593548 to Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN on 23 Jun 2023 |
Brandon submitted Solution 11593538 to Problem 18. Bullseye Matrix on 23 Jun 2023 |
Brandon submitted Solution 11593528 to Problem 18. Bullseye Matrix on 23 Jun 2023 |
Brandon submitted Solution 11593483 to Problem 20. Summing digits on 23 Jun 2023 |