amansinghberra Profile Banner
Aman Singh Profile
Aman Singh

@amansinghberra

Followers
134
Following
187
Media
31
Statuses
121

MERN Stack Developer | Full-Stack JavaScript Developer | React & Node.js | Open to New Opportunity

Indian
Joined February 2025
Don't wanna be here? Send us removal request.
@amansinghberra
Aman Singh
17 minutes
🚀Day 31 of #100DaysOfCode.Today's Problem: Isomorphic Strings.• Task: Given two strings s and t, determine if characters in s can be uniquely replaced to get t. • Approach: ASCII-based hashing with two maps , Check mapping consistency from both sides. #DSA #Cpp
Tweet media one
0
0
1
@amansinghberra
Aman Singh
24 hours
🚀Day 30 of #100DaysOfCode.Today's Problem: Longest Common Prefix.• Approach: Sort the array, Compare first and last strings only, Count matching characters from the start.• Time Complexity: O(N log N + M)., N = number of strings, M = length of shortest string. #DSA #cpp
Tweet media one
0
0
5
@amansinghberra
Aman Singh
2 days
🚀Day 29 of #100DaysOfCode.Today's Problem: Largest Odd Number in a String .• Task: Given a numeric string, extract the largest odd-valued substring from the left. No leading zeros in output!.• Concepts used: String manipulation, Reverse traversal . #CodingChallenge #DSA #cpp
Tweet media one
0
0
8
@amansinghberra
Aman Singh
3 days
🚀Day 28 of #100DaysofCode.Today’s problem was "Valid Anagram". • Key Learning: Sorting can simplify string comparison problems, especially when character frequency and order don’t matter. • Time Complexity: O(n log n) due to sorting. #Coding #DSA #cpp #100DaysChallenge
Tweet media one
0
0
6
@amansinghberra
Aman Singh
4 days
🚀Day 27 of #100DaysOfCode.Today's Problem: Sort Colors (LeetCode 75).• Task: Sort an array with elements {0,1,2} in-place.• Approach: Dutch National Flag Algorithm.• Time Complexity: O(n), Space: O(1).• Logic: 0 → front, 1 → middle, 2 → end. #LeetCode #DSA #Cpp
Tweet media one
1
0
20
@amansinghberra
Aman Singh
5 days
🚀Day 26 of #100DaysOfCode.Today's Problem: Sum of Highest and Lowest Frequency.• Task: Count frequencies and return sum of most & least frequent elements.• Approach: Use fixed-size array as a hash map , Track maxFreq and minFreq in one pass. #DSA #Cpp #CodingChallenge
Tweet media one
1
0
14
@amansinghberra
Aman Singh
6 days
🚀Day 25 of #100DaysOfCode.Today's Problem: Second Highest Occurring Element.• Approach: Used map for frequency count.• Logic: Count frequencies , Track max and second max frequency , Return smallest element with 2nd max freq. • Time Complexity is O(n). #DSA #Cpp #HashMap
Tweet media one
0
0
12
@amansinghberra
Aman Singh
7 days
🚀Day 24 of #100DaysOfCode.Today Problem is : Highest Occurring Element in an Array.• Approach: Frequency hashing using a vector.• Goal: Return the element with the highest frequency (smallest if tie).• Used: Hashing + Linear Scan. #DSA #Hashing #CodingChallenge #Cpp
Tweet media one
0
0
14
@amansinghberra
Aman Singh
8 days
🚀Day 23 of #100DaysOfCode. Today's Problem: GCD (Greatest Common Divisor) , LCM (Lowest Common Multiple).• Platform: @takeUforward_.• Concepts: Basic Math, Divisibility.• GCD – Found common divisor by iteration.• LCM – Found lowest multiple divisible by both. #DSA #Cpp
Tweet media one
Tweet media two
0
0
12
@amansinghberra
Aman Singh
9 days
🚀Day 22 of #100DaysOfCode.Today question is LeetCode:39 Combination Sum .• Find all unique combinations that sum to a target using elements multiple times.• All valid combinations in any order. #LeetCode #CodingChallenge #Cpp #DSA
Tweet media one
Tweet media two
4
0
21
@amansinghberra
Aman Singh
10 days
🚀Day 21 of #100DaysOfCode Today question is LeetCode #9: Palindrome Number.• Concept: Integer Manipulation.• Reversed half of the number to avoid overflow and unnecessary work. • Time Complexity is O(log₁₀(n)). #LeetCode #Coding #CPP #100DaysChallenge #ProblemSolving
Tweet media one
4
0
27
@amansinghberra
Aman Singh
11 days
🚀 Day 20 of #100DaysOfCode.Today question is LeetCode #2: Add Two Numbers.• Linked Lists + Carry Handling.• Learned to handle digit-wise addition with carry using a dummy node technique. • Output: A new linked list representing the sum in reverse order. #LeetCode #Coding #cpp
Tweet media one
Tweet media two
0
0
12
@amansinghberra
Aman Singh
12 days
🚀Day 19 of #100DaysOfCode.Today’s question is : LeetCode #540 - Single Element in a Sorted Array.• Find the one element that appears only once in a sorted array where all others appear twice. • Used XOR to solve it in O(n) time . #LeetCode #CodingChallenge #CPP
Tweet media one
Tweet media two
1
0
19
@amansinghberra
Aman Singh
13 days
🚀 Day 18 of #100DaysOfCode .Today problem is Leetcode #13: Roman to Integer .• Used a hashmap and greedy approach to handle subtraction rules like. • If a smaller value precedes a larger one → subtract, else → add. • Time Complexity is O(n). #CodingChallenge #LeetCode #cpp
Tweet media one
Tweet media two
4
0
33
@amansinghberra
Aman Singh
14 days
🚀Day 17 of #100DayOfCode - Leetcode #26: Remove Duplicates from Sorted Array .Today’s problem was all about in-place array manipulation. • Used the two-pointer technique.• Time Complexity is O(n). #100DaysOfCode #LeetCode #cpp #Algorithms
Tweet media one
Tweet media two
0
0
8
@amansinghberra
Aman Singh
15 days
🚀Day 16 of #100DaysOfCode - LeetCode #962: Maximum Width Ramp .Today's challenge was all about finding the widest ramp in an array. • Stack + reverse traversal.• Learned how to optimize search using decreasing stacks. #LeetCode #CodingChallenge #cpp #DataStructures
Tweet media one
1
0
17
@amansinghberra
Aman Singh
16 days
🚀 Day 15 of #100DaysOfCode.Today problem is Leetcode #11: Container With Most Water.• Used two-pointer approach (O(n)).• Optimized to always move the shorter wall inward. #Leetcode #CPP #CodingChallenge #DevLife
Tweet media one
0
0
10
@amansinghberra
Aman Singh
17 days
🔥 Day 14 of #100DaysOfCode.Today problem is Find First and last position of element in sorted array Leetcode #34: Find First and Last Position of Element in Sorted Array.• Used binary search (O(log n)) to locate first & last indices efficiently. #Leetcode #CodingChallenge #CPP
Tweet media one
Tweet media two
Tweet media three
0
0
7
@amansinghberra
Aman Singh
18 days
🚀 Day 13 of #100DaysOfCode.Today question is LeetCode #121 – Best Time to Buy and Sell Stock. • Learned how to track the minimum price so far and calculate max profit in a single pass using a greedy approach. • Time Complexity: O(n) . #CodingChallenge #LeetCode #cpp #Coding
Tweet media one
1
1
22
@amansinghberra
Aman Singh
19 days
🚀 Day 12 of #100DaysOfCode.Today’s challenge: LeetCode 2149 - Rearrange Array Elements by Sign.Order of elements with the same sign is preserved. • Used two pointers to place positives at even and negatives at odd indices. • Time complexity is O(n). #Coding #LeetCode #cpp
Tweet media one
5
0
38