
Jayraj Singh
@singh_jayraj_05
Followers
43
Following
285
Media
65
Statuses
83
• CSE student • Technophile • Buisness • Wandering & Exploring " Bridging ideas and technology 👣"
Joined August 2024
#Day61.Today I solved: 3Sum Closest🔥. Given an array and a target, find a triplet whose sum is closest to the target. ✅Concepts used:.Two-pointer technique🧭.Sorting for optimization.Greedy tracking of closest sum. Clean code, strong logic. #100DaysOfCode #Java #LeetCode #DSA
5
0
14
#Day60.Solved: Fruits into Baskets-II.🟣Copied arrays into ArrayList the right way.🟡Fixed logic bug in fruit-basket matcher🍎🧺. 🔸Learned:.▪️Arrays.asList(int[]).▪️Manual loop for primitives.▪️Don’t modify list while iterating!. #100DaysOfCode #Java #DSA #LeetCode #Technology
0
0
4
#Day57.🧠Problem: Design a HashSet.💡Without using any built-in hash table libraries!. 👨💻Methods:.add(key) ➕.remove(key) ➖.contains(key) ❓. 📊 TC (Avg): O(1) for all ops.📊 TC (Worst): O(n).📦 SC: O(n). #Java #DSA #LeetCode #HashSet #Coding #SystemDesign #100DaysOfLeetCode
0
0
7
#Day54.✅ Solved: Path Sum in Binary Tree . 📌 Goal: Check if there's a root-to-leaf path with a given target sum.📚 Concepts: Binary Tree, Recursion, DFS.🧮 TC: O(N), SC: O(H). Learning trees one node at a time 🌱.#Java #DSA #LeetCode #100DaysChallenge #TechnologyCareers
0
0
10
#Day53.✅ Problem: Largest Triangle Area. 🔍 Brute-forced all 3-point combinations.📐 Used Shoelace formula to compute triangle area:.💪 Learned how to handle 2D point arrays and apply geometry in code. 🔄 Still going strong, 1 day at a time!. #100DaysOfCode #LeetCode #Java #DSA
1
0
10
#Day52.Exploring how to manipulate strings in Java today!.✅ Filtered lowercase letters.✅ Removed numbers & spaces.✅ Learned how to use HashSet & Hashtable.✅ Found the key with the highest value in a map. Consistency builds mastery. Let's keep going!. #Java #100DaysOfCode #DSA
1
0
13
#Day50. ✅ Solved Find Shortest Subarray with Same Degree.✅ Found the most frequent element in an array. 📌Key Concepts:.Degree of an array.Tracking first & last occurrence.Optimal subarray identification. 📈Halfway there. Time to double down. #Java #DSA #LeetCode #CodingJourney
3
0
32
#Day48.✅ Learned how to filter prime numbers using logic based on 2, 3, 5, 7.✅ Understood and implemented the Sieve of Eratosthenes.✅ Feeling sharper by thinking through logic before coding!.🔁 Slow and strong is the way. Every day adds up. #Java #DSA #CodingJourney #LeetCode
1
0
8
#Day46.✅Solved: “Form the Largest Number” from a list of integers.💡Key Trick: Sort numbers as strings using custom comparator:. (a, b) -> (b + a).compareTo(a + b). Why? Because "9"+"34" > "34"+"9" ⇒ "934" > "349".Result is a string, not int💥. #100DaysOfCode #Java #DSA #Coding
3
0
18
#Day45.✅ Solved Number of Islands. 🔍 Explored 3 approaches:.My Greedy Top-Left Count (O(1) space 💡). DFS Flood Fill (Robust 🔥). BFS to avoid stack overflow (Scalable 🚀). Every method has its place. Today, I coded smart and learned deep. 🔥.#LeetCode #Java #DSA #CodingJourney
3
0
9
#Day44.Count only the top-left cell of each battleship by skipping parts connected from above or left. No need to mutate the board or jump indexes!. ✅ Time: O(m×n).✅ Space: O(1).✅ Lesson: Let the structure guide your logic — don’t force it. #100DaysOfCode #Leetcode #Java #DSA
0
0
6
#Day42.📌Topic: House Robber II-Dynamic Programming. 🔄 Key Insight: In a circular setup, you can't rob both first and last houses. 👉So, split into 2 cases:.1️⃣Rob from house 0 to n-2.2️⃣Rob from house 1 to n-1.return max(case1,case2). #Java #DSA #Leetcode #CodeNewbie #Technology
3
0
13