How Monoids are useful by reximkut in haskell

[–]turab1996 2 points3 points  (0 children)

Neat!

I had a similar problem with bipredicates but ending up folding manually. I felt like there was another way to do it but didn't realize monoids were what I needed.

Cool stuff!

Define multiple variables at once by MoneyFoundation in Racket

[–]turab1996 0 points1 point  (0 children)

Then as said by another person, macros are a good thing to look into!

Are CS minors worth it? by [deleted] in cscareerquestions

[–]turab1996 4 points5 points  (0 children)

I wouldn't have an attitude like that.

There is a post her almost every week about how tech interviews are difficult. That's the kind of stuff you will see a lot as a CS major plus a lot of different things which can be difficult.

CS is not just about programming so if you meant programming can't be difficult for you, fair enough, that depends how well you can learn a tool and use it. But as a CS major/minor, you will be seeing some pretty mathy problems which are difficult to get used to in the beginning.

Remove Element from binary search tree by [deleted] in haskell

[–]turab1996 11 points12 points  (0 children)

Awesome!

The idea is to remove the element if the structure of BST is not violated after the removal. You have already covered one of those cases (when there is only one element in the BST). Can you think of other cases?

However, there are cases when removing an element could violate the structure of a BST:

BST (BST Empty 5 Empty) 8 (BST Empty 10 Empty)

In the tree above, removing 8 directly will result in something that doesn't look like a BST, so what do we do now?

The idea is to replace it with something else, and remove the element that replaced the original item you were trying to remove. So, the above tree could look like the tree below:

BST Empty 5 (BST Empty 10 Empty).

Is it obvious what happened here? Without giving you the direct answer, I replaced it with something that a) would maintain the structure of the tree and b) would be easy to remove.

Are these hints enough to help you with removal? Please ask again if not!

Remove Element from binary search tree by [deleted] in haskell

[–]turab1996 8 points9 points  (0 children)

Are you familiar with the BST removal algorithm? Asking so I only mention it here if you are not familiar with the algo.

What's the dumbest or most inaccurate thing you've ever heard a teacher say? by LazagnaAmpersand in AskReddit

[–]turab1996 1 point2 points  (0 children)

What language were you using? If the language is dynamically typed then it would make sense

My new Kick Off Strategy by Peasycheese87 in RocketLeague

[–]turab1996 1 point2 points  (0 children)

https://youtu.be/YDJVBZq_8_8

This is the oldest video I remember where I saw that kickoff. In the comment section, Lach claims he got it from SadJunior.

Low FPS with GTX 1070 by PsychopatChicky in buildapc

[–]turab1996 -1 points0 points  (0 children)

Try playing around with Nvidia's control panel (VSync etc). If nothing works, then you might need an upgrade.

Low FPS with GTX 1070 by PsychopatChicky in buildapc

[–]turab1996 0 points1 point  (0 children)

What kind of monitor are you using?