SOMNATH DHERE Profile
SOMNATH DHERE

@dhere_somn57618

Followers
1
Following
23
Media
75
Statuses
75

Intern @Infosys SpringBoard | Java full stack developer

Joined December 2023
Don't wanna be here? Send us removal request.
@dhere_somn57618
SOMNATH DHERE
3 days
Efficient Java solution to find all unique pairs with sum 0 in an array. Uses HashSet & TreeSet for O(n log n) time. Handles large inputs, avoids duplicates, and ensures sorted output. #Java #Coding #DSA #Tech
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
8 days
Solved a problem to find the minimum value to add to an array element to balance the sums of its halves. Efficient O(n) time complexity using prefix sums. Clean and optimized Java solution. #Java #DSA #Coding #ProblemSolving#Algorithms #Array #CodeNewbie
Tweet media one
0
0
1
@dhere_somn57618
SOMNATH DHERE
9 days
Remove the two greatest elements from an array of distinct integers and return the rest in sorted order. Efficient solution using sorting with O(n log n) time complexity. Solved in Java. 💻🧠 #DataStructures #AmazonPrep #Java #CodingChallenge #TechInterview #DSA #Amazon
Tweet media one
0
0
1
@dhere_somn57618
SOMNATH DHERE
10 days
This program counts the number of characters in each word of a given sentence. It splits the string by spaces and returns the length of each word in order. Useful for string manipulation tasks in interviews and coding practice. #CodingPractice #InterviewPrep #BasicLevel #DSA
Tweet media one
0
0
1
@dhere_somn57618
SOMNATH DHERE
11 days
Remove characters at odd indices from a string in Python using slicing! This quick and efficient approach keeps only even-indexed characters, with O(n) time and space complexity. Perfect for interviews and coding challenges!.#Java #Coding #DSA #100DaysOfCode #TechTips
Tweet media one
0
0
2
@dhere_somn57618
SOMNATH DHERE
12 days
This program splits an array into two halves,calculates the sum of each subarray,and returns the product of these sums. If the array size is odd, the right half gets the extra element. Time complexity is O(n). #Array #SubarraySum #DivideAndConquer #BasicDSA #Java #GeeksForGeeks
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
13 days
Given two arrays, the task is to compute the product of the maximum element in the first array and the minimum element in the second. Efficient solution with O(n + m) time and O(1) space complexity. #Array #MaxMin #Product #Adobe #BasicCoding #DSA #EfficientAlgorithm
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
14 days
🚀 Problem: Find all elements in an array where the value equals its 1-based index. 💡 Example: [15, 2, 45, 4, 7] → Output: [2, 4].#Java #Coding #DSA #Amazon #Flipkart #ArrayLogic #TechInterviews
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
18 days
Implemented a basic Queue using an array with efficient push(x) and pop() operations. It supports up to 1 lakh queries, handles underflow conditions, and follows FIFO order. Suitable for beginners learning queue fundamentals in Java. #Java #Queue #DSA #ArrayImplementation #FIFO
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
Reversed a stack using pure recursion in Java! 🚀.No loops, no extra data structures — just elegant recursion to pop and insert elements at the bottom. Perfect for interviews! 💻📚.#Java #DSA #Stack #Recursion #Coding
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
Implemented stack operations in Java to perform insertion, removal, top element retrieval, and search based on user-defined queries. Used standard Stack methods: push(), pop(), peek(), and search() to handle multiple test cases efficiently. #Java #DSA #Stack #CodingChallenge
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
🚀 Find Maximum Index Difference in O(n).Given an array, return the max j - i such that arr[i] < arr[j]. Efficiently solved using two-pointer technique and right-max preprocessing. Handles large inputs up to 10⁶ size. #Java #DSA #CodingChallenge #TechInterview #Array #TwoPointer
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
Rearranged an array so that even elements are placed at even indices and odd elements at odd indices while preserving their original order. Remaining unmatched elements are appended. Achieved in O(n) time and space complexity. #Java #DSA #Coding
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
Given an array, find the longest continuous subarray of non-negative integers. If multiple subarrays have the same length, return the one with the highest sum. This helps in understanding sliding window and array traversal techniques. #Array #SlidingWindow #Subarray #Java
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
This Java program demonstrates the use of logical operators AND (&&), OR (||), and NOT (!). Given two boolean values, it prints the result of a&&b, a||b, and !a && !b in a single line. #JavaBasics #LogicalOperators #AND #OR #NOT #BooleanLogic #CodingPractice #InterviewPrep
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
Check if two strings are anagrams by comparing character frequencies. The solution runs in linear time and handles up to 1000 characters efficiently. Ideal for practicing hash maps and string manipulation. #String #Anagram #HashMap #FrequencyCount #BasicLevel
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
Efficiently computed the factorial of large numbers from an array using precomputation and modulo 109+710^9 + 7109+7. Handles up to 10⁵ inputs in optimal time. 💻🧮.#Java #DSA #Factorial #CompetitiveProgramming #ModularArithmetic #CodingChallenge #100DaysOfCode #Tech
Tweet media one
0
0
1
@dhere_somn57618
SOMNATH DHERE
2 months
Just solved the "Palindrome Linked List" problem!.Given a singly linked list, I checked whether it's a palindrome using the two-pointer approach and in-place reversal. Efficient and optimized for large inputs!.#DataStructures #LinkedList #Palindrome #Java #CodingChallenge #DSA
Tweet media one
0
0
1
@dhere_somn57618
SOMNATH DHERE
2 months
Solved a simple yet fundamental problem: Sum of First N Natural Numbers. Used the direct formula n*(n+1)/2 for efficient computation. Edge case n=0 returns 0. A quick and clean math-based solution!.#Java #Coding #DSA #100DaysOfCode #Maths #BeginnerFriendly
Tweet media one
0
0
0
@dhere_somn57618
SOMNATH DHERE
2 months
Java method that prints all alphabets from a given character c1 to c2, separated by spaces and without a newline at the end. This is a simple loop-based character traversal problem. #Java #BasicProgramming #Loops #CharacterHandling #EasyProblem
Tweet media one
0
0
0