Abhishek Verma πŸ’» (@intelocode) header
Abhishek Verma πŸ’» (@intelocode) profile picture

Coding for 15+ years | Sr. Software Engineer | IIT Kanpur alumnus | CP: 99.5+ %ile | Tweets: Computer Science, Maths & Psychology | Expertise: Problem Solving

Sweden
Joined January 2021
Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)Photo by Abhishek Verma πŸ’» (@intelocode)
I've been mentoring students and professionals for over a decade. Based on this experience, I've created an (almost) exhaustive list of the most impactful rules & concepts. Make 2024 your best year: πŸ‘‡
5
12
1
56
8,730
An interesting way to check if the given alphabet is vowel using bit manipulation. Have a look if you understand how it works !
1
10
817
Happy New Year, 2025 ! πŸ₯³πŸŽ‰βœ¨ May this year bring you joy, prosperity and everything you wish for ! Numerically, year 2025 holds rare gems which won't occur for decades and centuries. Let's explore πŸ§΅πŸ‘‡
5
4
22
2,127
Bonus fact if you're interested in primes: 2025 + 2 is a prime number √2025 + 2 is a prime number 2025² + 2 is a prime number
1
7
393
That's the end of thread ! πŸ‘‰ I post about Problem Solving, Computer Science, Mathematics & Psychology. If you enjoyed the thread, consider following (@intelocode) for more such content. Thank you ! 😊
6
365
Same location nearby my place in 4 seasons !
4
29
1,341
Received "1000 Days Badge" on @LeetCode today. Frankly, I've been solving just the daily-problems mostly. And it lead to 1000+ problems & 50+ badges. If you've similar goal, a few minutes everyday will easily take you there. Just start and be consistent ! πŸŽ‰
7
28
1,840
Abhishek Verma πŸ’» retweeted
Mathematics and beauty. Here's an eye-catching equation connecting i, e and pi. The left-hand side has only imaginary terms, and the right-hand side has only real terms. Source: bit.ly/33CmqCv
22
76
9
397
20,824
Those are midnight clicks ! June Solstice turned midnight into an evening.
1
15
1,174
It's Monday: time to practice problem solving⚑️ This puzzle comes from Game theory and involves both logic & human behavior. πŸ”Ή There are 'k' kids in a family and a cake needs to divided & distributed among them πŸ”Ή Kids are likely to be dissatisfied with their share What strategy would you follow so that no one complains about their share?
3
7
2,182
When Einstein said "Imagination is more important than knowledge" he didn't mean that your "imagined parachute" will save you if you jump off the aircraft ! πŸ€¦β€β™‚οΈ
1
10
999
Abhishek Verma πŸ’» retweeted
What I love about mathematics is that a simple idea can be extended to unexpected limits and it may still work perfectly. Moreover, it often leads to further insights ! For instance, as number of sides in regular polygon are increased, it approaches circle. This simple idea can be used to calculate area of circle (from area of polygon) as well as derive value of Ο€. Suppose the regular polygon is inscribed in a circle of radius "r". An n-shaped polygon can be split into n triangles (β–³). Base of β–³ = 2 r sin(Ο€/n) Height of β–³ = r cos(Ο€/n) Area of β–³ = (1/2) * base * height = (1/2) * 2 r sin(Ο€/n) * r cos(Ο€/n) = (1/2) rΒ² sin(2Ο€/n) β˜‘οΈ So, area of n-sided polygon = n * area of β–³ = (n/2) rΒ² sin(2Ο€/n) βœ… Now, if the number of sides 'n' is increased infinitely, that is, apply lim(nβ†’βˆž), it results into area of circle = lim(nβ†’βˆž) (n/2) rΒ² sin(2Ο€/n) = rΒ² lim(nβ†’βˆž) (n/2) sin(2Ο€/n) = Ο€ rΒ² βœ… With "r=1", this area would equate to Ο€. In fact, this method (calculating area of polygon) had been used to improve value of Ο€ for several centuries!
2
3
14
1,698
I am surprised to see amount of calculations in comment section. Such problems are much easier with shifting. Shift top triangle to the bottom and right-side triangle to the left. Then the yellow area perfectly fits within 3x4 rectangle. Hence answer is 12. βœ…
1
7
904
What I love about mathematics is that a simple idea can be extended to unexpected limits and it may still work perfectly. Moreover, it often leads to further insights ! For instance, as number of sides in regular polygon are increased, it approaches circle. This simple idea can be used to calculate area of circle (from area of polygon) as well as derive value of Ο€. Suppose the regular polygon is inscribed in a circle of radius "r". An n-shaped polygon can be split into n triangles (β–³). Base of β–³ = 2 r sin(Ο€/n) Height of β–³ = r cos(Ο€/n) Area of β–³ = (1/2) * base * height = (1/2) * 2 r sin(Ο€/n) * r cos(Ο€/n) = (1/2) rΒ² sin(2Ο€/n) β˜‘οΈ So, area of n-sided polygon = n * area of β–³ = (n/2) rΒ² sin(2Ο€/n) βœ… Now, if the number of sides 'n' is increased infinitely, that is, apply lim(nβ†’βˆž), it results into area of circle = lim(nβ†’βˆž) (n/2) rΒ² sin(2Ο€/n) = rΒ² lim(nβ†’βˆž) (n/2) sin(2Ο€/n) = Ο€ rΒ² βœ… With "r=1", this area would equate to Ο€. In fact, this method (calculating area of polygon) had been used to improve value of Ο€ for several centuries!
2
3
14
1,698