Boyer-Moore Voting Algorithm: If you have a stream of data and you wish to find element that occurs the most in constant space.
Many applications of this can be found in real world: Voting systems, Stream processing, etc.
TIL
`range` in Go can be tricky; prefer `for` always.
Code review excerpt:
```go
nums := []int{1, 2, 3, 4}
for _, num := range nums[1:] {
print(num)
}
// prints 1 2 3
```
It is so easy to overlook this but there is a reason we have code reviews.
#golang
Does anyone know whether a similar service to the one provided by https://t.co/VRG8QP6EMA, which reveals the last transaction price and the per square foot price for properties, exists for the Delhi NCR region?
IMO quite valuable to not trust brokers and over pay in the process
@icgee Some points to add:
1. We can still pay by cash in buses, you enter drop location, put your notes in a machine and spare change comes out with a ticket.
2. If not credit/debit card, there is EZ-link card which can be used for commuting.
3. There r officers who inspect tickets.
KKR in IPL is lot like us as investors. We buy stocks, don't understand their value, cash out when we feel its the high.
My case: $NVDA
KKR: Pat Cummins, Suryakumar Yadav, Glenn Maxwell, and Shubman Gill
In India, if someone forgets their PAN card number without linking it anywhere, there is no way to know about it!!
You have to go through some brokers to retrieve it and pay a lot in the process. ๐
Bonus: pan card is needed in insurance, so you cannot even live peacefully!
DynamoDB: UpdateItem will still consume the full amount of provisioned throughput (the larger of the "before" and "after" item sizes).
This is quite dumb on AWS side or I am missing something.
Just call it Upsert if WCUs are same. Why have UpdateItem and PutItem as separate fn๐
Mom: "India" is being renamed to "Bharat"?
Me: Hmm, I'm not sure.
Mom: Will we have to go through another currency exchange process? Our bank notes have the name "India" on them.
Me: ๐
Shared my version of the domain takeover security vulnerability with my team Featuring Jack and Elon. ๐ฅ
Teaching using real world characters sticks.
Catchy title but it's basically "siloing" within an AZ and handling AZs failover. But informative and something very important for resiliency. Hope to practically implement this and play around.
https://t.co/wLLDgvcMX3
It's good to have light jokes during an incident.
Engineer 1: Someone suggested DB is the issue. We need to spin up a new DB cluster.
Engineer2: Are we sure its DB? suggesting is 1 thing, showing is another, I just want to make sure we arenโt going full-speed in neutral ๐คฃ