vl4do
vl4do
CC#
Created by vl4do on 9/19/2024 in #help
Prefix Suffix Leetcode Problem
I wanted to solve problem 1769 on leetcode on my own but i couldnt do it. Im learning prefix sum algorithm so i wanted to solve it with that algorithm. I've been looking at this solution for like an hour now and i still cant understand why it works. What does the "balls" variable track? I'd be really happy if someone could help me understand it. solution: https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/solutions/4613483/c-o-n-using-prefix-suffix-moves-calculation/
1 replies
CC#
Created by vl4do on 7/31/2024 in #help
✅ Fibonacci sequence
No description
33 replies
CC#
Created by vl4do on 11/4/2023 in #help
❔ Text Mesh Pro (blem)
No description
24 replies
CC#
Created by vl4do on 10/23/2023 in #help
Global Variables - Unity
No description
26 replies
CC#
Created by vl4do on 7/1/2023 in #help
❔ Return two values from a method
So im making a blackjack game and i have a method where the player or the dealer draws cards. I want to implement aces and i thought that making a boolean and checking if the drawed card is an ace is the best method but i dont know how to return 2 values from a method. I researched it and i found 3 things: out, ref and tuples. Didnt understand none of them. Can someone help me? Also any other advice on the code would be greatly appreciated! Code: https://paste.mod.gg/jriutqhrhrvq/0
24 replies
CC#
Created by vl4do on 5/13/2023 in #help
BlackJack method
im a beginner and i just learned about methods. i was wondering is this too many methods? https://paste.mod.gg/jsggvgkilcew/0
73 replies
CC#
Created by vl4do on 5/7/2023 in #help
Change calculator
I tried making a calculator for change but it doesnt work with some numbers for example 14,65 and 15,63. Why is that?
1 replies