python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Default parameter in a function wouldnt compile/link without static inline
i was writing a BST class in C++ and wanted to add a default parameter to a function but, when i tried to the visual studio compiler gave compile and linking errors, so after a bit of googling, i made...
Programvarg
Votes: 0
Answers: 2
Can you implement Binary Search Tree in Haskell with O(log n) insertion?
If I understand correctly, modifying (insertion or deletion) a Binary Search Tree in Haskell requires copying the whole tree, so practically making it being O(n). Is there a way to implement it in O(l...
Slaus
Votes: 0
Answers: 1
How to delete a node from a tree. I am trying to delete the node from the function but still it is getting print even after deleting
I am deleting the node from delete function and when print it within function it shows its None
But when done out of the function it prints the value
please correct me, tell me what's wrong in this co...
Mohit Hasija
Votes: 0
Answers: 1
Populating Next Right Pointers - Why Node.next is still null when passed recursively?
I am working on Leet code question 116. Populating Next Right Pointers in Each Node:
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The...
Hebazzz
Votes: 0
Answers: 1