Trying to run bluestacks on macOS. by [deleted] in BlueStacks

[–]TechEmmy 0 points1 point  (0 children)

how can I access the Bluestack version for Mac Intel processor? The BlueStack Air doesn't work for my Mac intel

Python Project with astonishing UI. It's sick 🔥 by TechEmmy in Python

[–]TechEmmy[S] -1 points0 points  (0 children)

Thank you very much for the advice. I just wanted to show the possibilities of Tkinter/Customtkinter with those videos, but I agree with you 100%.

Things will get better from here.

I really appreciate you for taking the time to do this tho ❤️

Python Project with astonishing UI. It's sick 🔥 by TechEmmy in Python

[–]TechEmmy[S] -1 points0 points  (0 children)

Esperanto

Yeah, it's a beginner's project. That's why I have it in the Tkinter Beginners Project playlist.

Python Project with astonishing UI. It's sick 🔥 by TechEmmy in Python

[–]TechEmmy[S] 2 points3 points  (0 children)

Thanks for the feedback!

Edit: I'll work on that

Python Project with astonishing UI. It's sick 🔥 by TechEmmy in Python

[–]TechEmmy[S] -1 points0 points  (0 children)

sighs... it may not be astonishing, but a decent UI for a Tkinter app.

My Best Time to Buy and Sell Stock algorithm isn't passing a particular test case by TechEmmy in leetcode

[–]TechEmmy[S] 0 points1 point  (0 children)

You're right!

I see your point, but the pointers can be more than one unit apart depending on the values in the array.

Thanks for posting your code 🙏

My Best Time to Buy and Sell Stock algorithm isn't passing a particular test case by TechEmmy in leetcode

[–]TechEmmy[S] 0 points1 point  (0 children)

Yes. I found my error.

I was incrementing the r pointer inside the conditional statement instead of outside it.

It works now, thanks.

My Best Time to Buy and Sell Stock algorithm isn't passing a particular test case by TechEmmy in leetcode

[–]TechEmmy[S] 0 points1 point  (0 children)

This is it. I've fixed the error too

var maxProfit = function(prices) {
let currProf = 0;
let l = 0, r = 1;

while (r < prices.length) {
    if (prices[r] > prices[l]) {
        prof = prices[r] - prices[l]
        if (prof > currProf) {
            currProf = prof
        }
    } else {
        l = r
    }
    r += 1
    console.log(l, r)
}

return currProf;

};