AAyushinayush-30-days-of-leetcode.hashnode.devยทSep 6, 2025 ยท 2 min readDay 3 - LeetCode Learning Log๐ Building Blocks I Practiced Today Slow Fast Pointer - Finding middle of LL Also called as Hare & Tortoise Algorithm. Used for detecting cycle, finding middle, happy number, etc. O(n) time, O(1) space // Finding middle of a Linked List ...00
AAyushinayush-30-days-of-leetcode.hashnode.devยทSep 6, 2025 ยท 2 min readDay 2 โ LeetCode Learning Log๐ Building Blocks I Practiced Today Binary Search Searching algorithm used in sorted arrays. O(logn) time, O(1) space Prone to Negative values, Unsorted array int l = 0, r = nums.length - 1; while(l <= r){ int mid = l + (r -...00
AAyushinayush-30-days-of-leetcode.hashnode.devยทSep 5, 2025 ยท 2 min readDay 1 โ LeetCode Learning Log๐ Building Blocks I Practiced Today Frequency Map Using Hash Map Map<Integer, Integer> hm = new HashMap<>(); for(int num : nums){ hm.put(num, hm.getOrDefault((num, 0) + 1); } Frequency Map Using Arrays int[] freq = new int[26]; for(c...00
AAyushinayush-devhub.hashnode.devยทSep 1, 2025 ยท 3 min readDay 5: Java CLI Expense Tracker BackendWhat I Built Today (Need for Finishing) Today, I built a console-based Expense Tracker Backend using Java. This project uses an ArrayList, Hash Map and .txt file to track expenses. Users can perform the following operations: Console-based backend si...00
AAyushinayush-devhub.hashnode.devยทAug 31, 2025 ยท 3 min readDay 4: Java Console Based Student Grade ManagerWhat I Built Today Today, I built a console-based Student Grade using Java. This project uses an ArrayList, Hash Map and txt file to track grades. Users can perform the following operations: Add a student. Add subjects & marks for the respective st...00