
SOMNATH DHERE
@dhere_somn57618
Followers
1
Following
23
Media
75
Statuses
75
Intern @Infosys SpringBoard | Java full stack developer
Joined December 2023
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
0
0
1
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
0
0
1
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
0
0
1
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
0
0
2
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
0
0
0
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
0
0
0
🚀 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
0
0
0
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
0
0
0
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
0
0
0
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
0
0
0
🚀 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
0
0
0
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
0
0
0
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
0
0
0
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
0
0
0
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
0
0
1
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
0
0
1
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
0
0
0
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
0
0
0