- Dec 2024
-
readmedium.com readmedium.com
-
You have buried someone you loved. Now look for someone to love. It is better to make good the loss of a friend than to cry over him. — Seneca
love and loss
-
With regard to whatever objects give you delight, are useful or are deeply loved, remember to tell yourself of what general nature they are, beginning from the most insignificant things. — Epictetus
epictetus.
-
-
www.goodreads.com www.goodreads.com
-
“Love. The reason I dislike that word is that it means too much for me, far more than you can understand."
love, leo tolstoy
-
“When you love someone, you love the person as they are, and not as you'd like them to be.” ― Leo Tolstoy
love
-
“Nothing is so necessary for a young man as the company of intelligent women.” ― Leo Tolstoy, War and Peace
men-women
-
“Respect was invented to cover the empty place where love should be.” ― Leo Tolstoy, Anna Karenina
love and respect
-
“He stepped down, trying not to look long at her, as if she were the sun, yet he saw her, like the sun, even without looking.” ― Leo Tolstoy, Anna Karenina
romantic
-
-
readmedium.com readmedium.com
-
“If I had an hour to solve a problem I’d spend 55 minutes thinking about the problem and five minutes thinking about solutions” — Albert Einstein
medium articel
-
-
readmedium.com readmedium.com
-
Carl Jung said: “Everything that irritates us about others can lead us to an understanding of ourselves.”
medium
-
as the good man once said: “Waste no more time arguing about what a good man should be. Be one.”
medium, marcusAu
-
-
readmedium.com readmedium.com
-
And the more correct your worldview is, the better you’ll be at solving problems.
medium article
-
- Nov 2024
-
readmedium.com readmedium.com
-
If a person’s behavior doesn’t make sense to you, it is because you are missing a part of their context. It’s that simple.
medium article on why homeless people do what they do and laziness
-
-
assess.masaischool.com assess.masaischool.com
-
in queue/stack questions see whether they are saying to print the front or top element or remove and print the front and top elm. if they r just saying to print the top/front elm then track them st[st.length-1] or que[0], if they r saying remove and print then console.log(que.shift())
-
-
chatgpt.com chatgpt.comChatGPT1
-
Incorrect Console Output on Enqueue (push):The push method in JavaScript returns the new length of the array, not the element that was pushed. So, let enter = que.push(input[i][1]) assigns the length of the queue to enter, not the element that was added.
The problem in your code seems to be with the way you’re handling the push operation and printing the result. Here’s a breakdown of the issues and improvements you can make:
Incorrect Console Output on Enqueue (push):
The push method in JavaScript returns the new length of the array, not the element that was pushed. So, let enter = que.push(input[i][1]) assigns the length of the queue to enter, not the element that was added. Instead, you should directly print the element that was added to the queue. Correcting the console.log for Enqueue:
Replace console.log(enter) with console.log(input[i][1]) to print the element being added to the queue instead of the length of the queue.
Tags
Annotators
URL
-
- Oct 2024
-
hypothes.is hypothes.is
-
nothing special.
-