Fork me on GitHub
#bristol-clojurians
<
2021-08-04
>
j20:08:14

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

Adrian Smith20:08:05

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

j20:08:21

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)

markw20:08:18

Yeah it was nice to meet everyone! 😅

Adrian Smith20:08:21

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

markw20:08:17

no worries at all! Java trickery can be hard 😛

👍 2
markw21:08:19

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!

👍 3
markw21:08:18

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

Richard21:08:23

That's a great comparison between the two functions

kipz12:11:16

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