love how everyone's first instinct for multiplication was starting with 0
give me a button clicking challenge next time, not rocket science
Declaring a variable in a function invocation is wild lol
Hopelessly addicted to your Clash of Code videos. The problem solving, the looking up of "product," the unrelenting trash talk of CJ, there's nothing better.
As a math major the final problem was so painful. The velocity is given by 2 * t, then you can find the total distance traveled by integrating giving t**2. Calculus is probably one of the most powerful things you can learn, it turns problems which seems incredibly difficult into something you can solve in 10 seconds.
17:43 I think you can save another character too by changing `r()*120-r()-r()>0` to `r()*120-r()>r()`, saves you a minus and a zero just by moving the third number to the other side of the equation
Scott is always my favorite to watch in these because it's exactly the same kind of thing I go through for leetcode type things while under pressure. Love these videos, gents. Thanks for doing these!
Scott: one plus two is two yes
I'd love to see one where you all work together to optimize the hell out of one of these. You could all do it independently and then take all your ideas and merge them into one tiny snippet.
Scott at the last one is just re-assigning a variable in a loop body :D
😅😅😅 Bro is searching for the meaning of "Product". Hot seat! 🔥
It's fun seeing Scott struggle
for the last one, an easy way to understand this is to graph speed over time. since the acceleration is const, the graph is v = 2t. distance travelled is the area below this graph
"Lets do Number() instead of ParseInt() cause it's shorter" [Me Thinking] Should I tell them that prepending with '+' is even shorter? EDIT: See, CJ gets it
I like how CJ approaches the problems and hearing his thought process.
I refuse to believe that I just saw two programmers asking and googling what a product is. Nope, this can't be real, because this is primary school level.
Scott can't stop swearing, Wes completely sidelines the challenge and both full on attack CJ... The competitivness is strong. This is soo fun to watch 😂
first instinct for that first problem: n=readline();print(eval(n.split``.join('*'))) edit: ugh, should do print(eval(readline().split``.join('*'))) instead!
It's fun to see how you each tackle the problem. Scott and Wes like to write out full variable names and then shorten. CJ is already thinking about the character count. For timed challenges, I guess you have to shift into that quick thinking brain to do well on this.
@lightningdev1