Java Problem Solving Practice Day 34

Day 34 of Coding Practice 🚀 Today’s learning reminded me that small logic improvements make a big difference in problem solving. 🔹 Practiced string manipulation problems in Java 🔹 Focused on understanding conditions, loops, and edge cases 🔹 Learned how to think step-by-step instead of jumping to the final answer 💡 Key takeaway: Writing code is easy, but understanding why it works is what actually builds confidence. Every day of practice is helping me improve my logic, clarity, and debugging skills. Consistency really is the key 🔑 On to Day 35 💪 #Day34 #CodingPractice #Java #ProblemSolving #LearningJourney #Consistency #DeveloperLife my code ===== class Solution {   static ArrayList<Integer> removeDuplicates(int[] arr) {     ArrayList<Integer> n=new ArrayList<>();     for(int i=0;i<arr.length;i++)     {       if(!n.contains(arr[i]))       {         n.add(arr[i]);       }     }     return n;         }   public static void main(String hjk[])   {     removeDuplicates(new int[]{1,2,3,2,1,5,9});   } }

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories