Abhishek Ahlawat
@AbhishekAh89825
Followers
124
Following
3K
Media
113
Statuses
2K
MTech IT '24 | Aspiring Full Stack Developer | Android Dev (Published apps on Google Play) | Ex-Infosys | 2x AWS Certified | Content Creator @MPC
New Delhi, India
Joined June 2024
Full solution and code here: https://t.co/8MXJocNc6Q
1
0
1
This solution is simple but can be optimized by reversing the second half of the linked list in place and comparing nodes.
1
0
1
Time complexity is O(N) and space complexity is also O(N), due to the intermediate string.
1
0
1
Solved Palindrome Linked List by converting the linked list to a string and checking it using two-pointer comparison.
1
0
1
Also spent time revising core JavaScript concepts—closures, async patterns, scopes, and DOM handling—for frontend interviews
1
0
1
In TypeScript, you can mix data types in an array using union types. Example: (string | number)[] lets you store both strings and numbers in the same array safely.
1
0
1
Continued with TypeScript experimentation and JavaScript revision, and also solved a common linked list interview problem. Here's what I learned today.
1
0
2
On the DSA side, solved Best Time to Buy and Sell Stock using a greedy single-pass approach
1
0
0
Revised the concept of IIFE (Immediately Invoked Function Expressions) in JavaScript. They allow functions to execute immediately and are useful for creating isolated scopes.
1
0
1
When using union types like string | number, TypeScript doesn’t allow direct access to string methods unless the type is narrowed. Use typeof checks before applying string-specific methods.
1
0
1
Today I learned more about TypeScript edge cases, continued my JavaScript interview prep, and solved a classic greedy problem. Here’s what I explored. #TypeScript #JavaScript #GreedyAlgorithms
2
0
1
Full implementation and explanation: https://t.co/8MXJocMEhi
1
0
1
Inserted all suffixes of the string into a Trie. Each unique path represents a unique substring.
1
0
1
On the algorithm side, solved the Count Distinct Substrings problem using a Trie-based approach.
1
0
1
Also started revising JavaScript fundamentals for interviews—important for tackling both frontend logic and system-level design rounds.
1
0
1