Pinned Tweet
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: π
An interesting way to check if the given alphabet is vowel using bit manipulation.
Have a look if you understand how it works !
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 π§΅π
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
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 ! π
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 ! π
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
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?
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 ! π€¦ββοΈ
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!
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. β
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!















