Chinmay Shrivastav

55 posts

Chinmay Shrivastav

Chinmay Shrivastav

@Shri_Chinmay

Engineering Student | Exploring AI/ML & Data Science | Competitive Programmer

Katılım Kasım 2025
27 Takip Edilen27 Takipçiler
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 44: #SDESheetChallenge @striver_79 @takeUforward_ Solved: - Flatten Tree to DLL - Median of data stream - kth largest in data stream Solved 1 using a very straightforward approach (using an extra vector). Not that optimal but very simple. Working on its optimal solution.
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
5
46
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 42: #SDESheetChallenge @takeUforward_ @striver_79 Solved: -Floor in BST -Ceil in BST -kth smallest in BST -kth largest in BST 1,2 were easy, just compare the current value with given and move left/right accordingly. Similarly, 3,4 were just inorder, rev. inorder with counter
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
8
62
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 38 of #SDESheetChallenge @striver_79 @takeUforward_ Solved today: - Maximum path sum: Classic DP on trees implementation - Construct from inorder & preorder - Construct from inorder & postorder 2nd and 3rd were very standard problems, although new for me, were fun to solve
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
5
36
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 37 of #SDESheetChallenge @striver_79 @takeUforward_ Solved today: - ZigZag Traversal - Boundary Traversal - Same Tree - Lowest Common Ancestor First three were very intuitive, the key idea to the 4th one also struck quickly but felt its implementation to be a little tricky.
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
6
61
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 36 of #SDESheetChallenge @striver_79 @takeUforward_ Solved today: - Level order traversal - Maximum depth of binary tree - Balanced Binary tree - Diameter of binary tree Except the first, all others were similar, variants of each other. Fundamental problems today.
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
4
36
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Dat 34 of #SDESheetChallenge @striver_79 @takeUforward_ Solved today: - Morris Postorder: Same idea as inorder version- internal threading - Top view - Bottom view - Right view These three had a similar idea. I first did DFS in bottom view, took too much debugging and lots of WAs
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
5
36
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 33 of #SDESheetChallenge @striver_79 @takeUforward_ - Inorder traversal - Preorder traversal - Postorder traversal - Morris inorder traversal 4th was something new for me. I figured out there was something to do with threading, but couldn't figure out completely.
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
5
40
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 31: #SDESheetChallenge @takeUforward_ @striver_79 Solved today: - Needle in haystack: Easy, direct search problem - Min. insertions to make palindrome: Figured out the approach quickly, had to revise LCS to implement - Z Algorithm: An awesome problem, learnt amazing things!
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
6
51
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 30 of #SDESheetChallenge @takeUforward_ @striver_79 Solved today: - String to integer - Longest common prefix - Repeated string match 1 and 2 were pretty easy. 3 took a lot of WAs, lots of learning and a good lesson. Can't believe its day 30 already!!
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
4
48
Chinmay Shrivastav retweetledi
TLE Eliminators | Competitive Programming
Competitive Programming teaches two things: 1. Algorithms 2. And how to act confident after being completely wrong
TLE Eliminators | Competitive Programming tweet media
English
0
5
44
1.5K
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Day 28: #SDESheetChallenge by @takeUforward_ @striver_79 Solved: - Stock span: Easy application of prev. min - Celebrity problem: First solved in O(n^2), then found out about optimal - Max. of min. for windows: A very good applcn. of next+prev min, along with heavy implementation
Chinmay Shrivastav tweet mediaChinmay Shrivastav tweet mediaChinmay Shrivastav tweet media
English
0
0
4
29
Chinmay Shrivastav
Chinmay Shrivastav@Shri_Chinmay·
Was B really this easy that over 7k participants solved it!? It took me more than 75 minutes and 9 pages to solve B. Felt C was much easier compared to B. B karne ke baad itni khushi hui thi.... fir no. of accepted submissions check kar li😓💔
Chinmay Shrivastav tweet media
English
3
0
8
146