Daily
nono, fuck it, when the problem needs some fucking "Gray Code" knowledge, this is bye bye. Bullshit question, don't waste time.
https://leetcode.com/problems/minimum-one-bit-operations-to-make-integers-zero/solutions/7333658/bit-manipulation-gray-code-logic-python-kwkii/?envType=daily-question&envId=2025-11-08
#dailly #hard
nono, fuck it, when the problem needs some fucking "Gray Code" knowledge, this is bye bye. Bullshit question, don't waste time.
https://leetcode.com/problems/minimum-one-bit-operations-to-make-integers-zero/solutions/7333658/bit-manipulation-gray-code-logic-python-kwkii/?envType=daily-question&envId=2025-11-08
#dailly #hard
👍3
Daily
YEAH, the type of problems I want to see after hard (no sarcasm)
https://leetcode.com/problems/count-operations-to-obtain-zero/description/?envType=daily-question&envId=2025-11-09
#daily #easy
YEAH, the type of problems I want to see after hard (no sarcasm)
https://leetcode.com/problems/count-operations-to-obtain-zero/description/?envType=daily-question&envId=2025-11-09
#daily #easy
🔥2
Right now I'm learning a bit of domain knowledge about how Payment Gateways like Stripe work to not fuckup when I publish System Design Solution here. SO:
When customer submits card details to Stripe willing to pay merchant for his goods, what Stripe does FIRST to capture money from the customer?
(first should be authorization transaction)
(first should be authorization transaction)
Anonymous Poll
47%
contacts customer's (issuing) bank, that issued card
35%
contacts Card Network
6%
contacts Stripe's bank (receiving)
12%
contacts Merchant's (Goods/Services owner) bank
Where Stripe transfers money when customer pays for goods?
Anonymous Poll
47%
Merchant's (goods/services) bank
33%
Stripe's bank
11%
Stripes internal database
8%
Any Local bank in Customers Region
Terminology:
Stripe - payment gateway
Merchant - the guy selling goods or services
Customer - the guy buying goods or services from Merchant
Issuing / customer's bank - the bank that issued card to customer, that he pays with
Merchant's bank - the bank where merchant receives money when customer pays for it
Stripe - payment gateway
Merchant - the guy selling goods or services
Customer - the guy buying goods or services from Merchant
Issuing / customer's bank - the bank that issued card to customer, that he pays with
Merchant's bank - the bank where merchant receives money when customer pays for it
👍1
Don't worry, by the end of the day the answers to the poll will be revealed :)
But that is interesting how people's opinions diverge
But that is interesting how people's opinions diverge
andreyka26_se
When customer submits card details to Stripe willing to pay merchant for his goods, what Stripe does FIRST to capture money from the customer?
(first should be authorization transaction)
(first should be authorization transaction)
Here the correct answer is Card Network, e.g. Visa or Mastercard, this is what first would be called. Cause Stripe might not have integration with customer's bank + it has only card details, it does not have an bank account. Whenever you charge from card you pretty much always work through the Card Network.
You can imagine Mastercard or Visa as a bridge that transfers money from customer's account (card holder) to Stripe's account
You can imagine Mastercard or Visa as a bridge that transfers money from customer's account (card holder) to Stripe's account
🔥2
andreyka26_se
Where Stripe transfers money when customer pays for goods?
The money is transferred to Stripe's bank account (it has multiple in different regions). If it would directly transfer to merchant - how would it collect fee/interest then?
🔥2
Daily
Mid, but it is close to hard I would say for building an intuition
https://leetcode.com/problems/minimum-operations-to-convert-all-elements-to-zero/description/?envType=daily-question&envId=2025-11-10
#daily #medium
Mid, but it is close to hard I would say for building an intuition
https://leetcode.com/problems/minimum-operations-to-convert-all-elements-to-zero/description/?envType=daily-question&envId=2025-11-10
#daily #medium
🔥2
andreyka26_se
Gmail, seems to put some sort of "agent" inside. It detected that I mentioned "attached", then detected that nothing is attached and warned me with alert()
I would understand if it was Outlook, but GMAIL, I want to believe they didn't do it like that xD
Daily
Eventually, good old DP problem, love it.
https://leetcode.com/problems/ones-and-zeroes/description/?envType=daily-question&envId=2025-11-11
#daily #medium
Eventually, good old DP problem, love it.
https://leetcode.com/problems/ones-and-zeroes/description/?envType=daily-question&envId=2025-11-11
#daily #medium
🔥2
Around 5-6 years ago when I started learning "Clean Code", so finished "Code Complete" by Steve McConnell, then "Clean Architecture" by uncle Bob, then bunch of Domain Drive Design books, I was under impression that this is IT, I know how to write code and keep it simple and clean.
🔥3
Question before sleep for System Design. We can afford to be eventually consistent, but, we cannot afford data loss and want to be highly available.
🤔4
which replication can guarantee no data loss in the case above
Anonymous Poll
36%
Async Leader Follower
21%
Sync Leader Follower
16%
Leader Leader (master master)
19%
Leaderless
36%
Consensus(raft, paxos)