PayPal interview question

Q: Explain the difference between boosting and bagging Q: How do LSTMs solve the vanishing gradient descent problem.