bristol-clojurians

j 2021-08-04T20:34:14.000400Z

Thanks for hosting that guys! It was good to see everyone!

Adrian Smith 2021-08-04T20:35:05.001400Z

Good to see you again, your mock interview thing sounds great

j 2021-08-04T20:38:21.003900Z

Thanks! It's good practice for beginners like us! If you guys ran one I'd totally join! (Even if I'd totally flop :p)

markw 2021-08-04T20:35:18.001700Z

Yeah it was nice to meet everyone! 😅

Adrian Smith 2021-08-04T20:36:21.002500Z

Sorry we used you to drive the question hopefully wasn't too stressful with the ambiguous wording on the java questions

markw 2021-08-04T20:39:17.004800Z

no worries at all! Java trickery can be hard 😛

👍 1
markw 2021-08-04T21:07:19.008600Z

I felt uneasy with that solution I showed, as it had to loop through the seq 3 times (1 for distinct, 2 for equality) - so I've fixed that 😉 https://github.com/markus-wa/bristol-clj/blob/main/src/bristol_clj/interviews/week1.clj It also returns early if possible - let me know if you have more suggestions!

👍 1
2021-11-22T12:43:16.000300Z

We can make it faster using transient for the set maybe?

markw 2021-08-04T21:08:18.008900Z

I'm not usually a fan of loop - so if anyone knows how to get rid of it I'd be very interested 😛

Richard 2021-08-04T21:12:23.009300Z

That's a great comparison between the two functions