Day 32 of #GeekStreak60
โLargest BSTโ had me stuck for a bit ๐
Tried to find BSTs manuallyโฆ didnโt work.
Switched approach โ let each subtree decide if itโs a BST.
That changed everything.
#npci#coding#algorithms#GeekStreak60
Day 25.
Minimum K consecutive bit flips.
Instead of flipping bits every time, track flip state with a sliding window.
If current bit (after flips) is 0 โ start a flip.
Greedy + difference array trick.Time: O(n)
#geekstreak60#npci#DSA
Day 23.
Subarrays where the first element is the minimum.
Key idea:
Find the next smaller element using a monotonic stack.
If next smaller index is j,
valid subarrays starting at i = j - i.
Time: O(n)Stack patterns everywhere.
#geekstreak60#npci#DSA
Day 22.
Largest number in one swap.
Track last position of digits 0โ9.
From left โ find a bigger digit later โ swap once.
Greedy + indexing trick.O(n).
#geekstreak60#npci#DSA
Open Source Automation Project
One student built an automation workflow used in an open-source project.
The workflow supports contributor coordination in GitPadi.
Real projects create stronger learning.
https://t.co/bKFVJRIiat
Day 19.
Smallest window containing all characters.
Sliding window again.Count chars in p.
Expand right.
Shrink left when all chars are matched.
Track the smallest window.
Time: O(n)Patterns keep repeating in DSA.
#geekstreak60#DSA#CodingJourney#npci
Built Maverick โ an autonomous multi-agent wallet ecosystem on Solana where AI agents create their own wallets, sign transactions, trade, swap, lend, and talk back to you.
Every operation is a real on-chain transaction on devnet. No mocks.
Thread on what it does
Security matters even in a prototype:
- Each agent has an isolated keypair
- Vault keypair is separate only it can sign outbound vault txs
- Append-only audit trail with tx signatures
- Block height expiry handling verifies tx landed on-chain before reporting failure