Ankit Singh Tomar
@Ankitdotdev
Followers
180
Following
1K
Media
117
Statuses
951
Backend Engineer | Spring Boot | Microservices System Design, DSA | RL Automation Datasets creator https://t.co/CPftC7zUty
Pune, Maharashtra
Joined February 2013
Day 68/365: Palindrome Check + Reverse String + Access Modifiers & Local vs Instance Variables • Palindrome check (two-pointer, case-insensitive) • Reverse string (in-place swap) • Access modifiers table • Local vs Instance variables explained #DSA #Java #CodingStreak
0
0
0
Day 67/365: Vowel Count & Remove + Java 8 Date/Time API (java.time) • Count vowels in string • Remove vowels (StringBuilder) • Why java.time API + core classes (LocalDate, Period, etc.) attached #DSA #Java #CodingStreak #100DaysOfCode #InterviewPrep
1
0
2
Day 66/365: CompletableFuture for Modern Concurrency + ASCII Value, String Length Without .length(), Toggle Case • CompletableFuture – chaining async tasks • ASCII value of char • String length without .length() (catch exception trick) • Toggle case using ASCII shift
1
0
2
📢 Open-sourcing the Sarvam 30B and 105B models! Trained from scratch with all data, model research and inference optimisation done in-house, these models punch above their weight in most global benchmarks plus excel in Indian languages. Get the weights at Hugging Face and
sarvam.ai
204
1K
7K
Day 65/365: Best Time to Buy & Sell Stock + Vowel/Consonant Check + Process vs Thread Differences • Best Time to Buy & Sell Stock (max profit, O(n)) • Vowel / Consonant / Not Alphabet checker • Process vs Thread – differences table Greedy array + char logic + concurrency
2
0
3
Day 64/365: final / finally / finalize in Java + Array Duplicates & Longest Consecutive Sequence • final / finally / finalize – explained + examples • Remove duplicates from sorted array (in-place, O(1) space) • Longest consecutive sequence (HashSet O(n)) Java gotchas + top
8
0
6
Day 64/365: Heap Patterns + Leaders in Array + Constructor Chaining in Java • Kth smallest element (Max-Heap of size k) • Leaders in array (right-to-left max tracking) • Constructor chaining (this() & super()) Heap + greedy scan + clean OOP reuse — solid interview combo
5
0
5
Day 61/365: Max Subarray Sum (Kadane + indices) + Min Length Subarray Sum + Marker Interfaces in Java • Max subarray sum (Kadane + indices) • Min length subarray ≥ target (sliding window) • Marker interfaces: empty tags (Serializable, Cloneable, Remote) for JVM/framework
2
0
7
Day 60/365 : Min Scalar Product + Subarrays with Given Sum + Symmetric Pairs + Quick Deep vs Shallow Recap • Min scalar product (sort asc + desc) • Count subarrays with given sum (prefix + HashMap) • Symmetric pairs in array of pairs (map reverse check) • Deep vs Shallow Copy
2
0
3
Day 59/365: Count Even/Odd + Pairs with Given Sum + Max Scalar Product + Deep vs Shallow Copy in Java • Count even & odd in array • All pairs sum to target (HashSet) • Max scalar product (sort + multiply) • Deep vs Shallow Copy: shallow = ref copy (shared), deep = full
4
0
13
Day 58/365: Disjoint Arrays Check + First Repeating Element + Missing Number + Multiple Inheritance in Java • Disjoint arrays? (HashSet check) • First repeating element (HashSet seen) • Missing number 1..n (sum trick) • No multiple inheritance in Java → avoids diamond
1
0
8
Day 57/365: Remove Duplicates (Sorted & Unsorted) + Merge Two Sorted Arrays + Private/Static Method Overriding in Java • Remove duplicates: sorted (in-place) & unsorted (LinkedHashSet preserve order) • Merge two sorted arrays (two-pointer) • No overriding private/static in
5
0
9
Day 56/365: Sort by Frequency + Longest Palindromic Number + Right Rotate by K + Method Overriding in Java • Sort array by frequency desc (HashMap + custom comparator) • Longest palindromic number in array • Rotate right by K (3 reverses trick) • Method Overriding: runtime
9
0
14