Home
About
Project
Blog
Contact

All rights are reserved by Anuj Joshi © 2026

Recent Blogs

Insights, Tutorials and Tech Trends

Showing 1-9 of 17 results
2b65c6ea-762e-8067-8c63-cb67b044bf5b
POTD
GFG
XOR
Greedy
Game of XOR
Finding the maximum subset sum divisible by 3 might sound complex, but with a clever use of modulo arithmetic, it becomes easy and efficient. Instead of checking every possible subset, we calculate the total sum and only remove the smallest necessary values to make it divisible by 3. This smart greedy approach reduces the complexity to linear time while ensuring we get the largest valid sum.
AAnuj Joshi
11/25/2025
2b45c6ea-762e-809e-9aba-e12345bbc695
Leetcode
POTD
Greatest Sum Divisible by Three
Finding the maximum subset sum divisible by 3 might sound complex, but with a clever use of modulo arithmetic, it becomes easy and efficient. Instead of checking every possible subset, we calculate the total sum and only remove the smallest necessary values to make it divisible by 3. This smart greedy approach reduces the complexity to linear time while ensuring we get the largest valid sum.
AAnuj Joshi
11/23/2025
29f5c6ea-762e-80ef-bf2c-e03b6fcd7169
Leetcode
Sparse Tree
Greedy
Maximum Total Value From Selecting k Subarrays
Given an array of integers nums of length n and an integer k. The task is to select exactly k distinct, non-empty subarrays from nums (subarrays can overlap, but each subarray can only be selected once), and maximize the total value, where the value of a subarray nums[l..r] = max(nums[l..r]) - min(nums[l..r])
AAnuj Joshi
11/2/2025
2795c6ea-762e-8098-8e4a-cf5a2b2eed42
Leetcode
Sparse Tree
Greedy
Leetcode Weekly Contest 46
Given an array of integers nums of length n and an integer k. The task is to select exactly k distinct, non-empty subarrays from nums (subarrays can overlap, but each subarray can only be selected once), and maximize the total value, where the value of a subarray nums[l..r] = max(nums[l..r]) - min(nums[l..r])
AAnuj Joshi
9/25/2025
2765c6ea-762e-80a2-bbbf-e8d6eb276c98
Leetcode
Contest
AtCoder Beginner Contest 430
It covers the 468th LeetCode Weekly Contest held on September 21, 2025. It includes clear explanations and step-by-step solutions for all problems — from ‘Bitwise OR of Even Numbers in an Array’ to ‘Maximum Total Subarray Value II.’ Whether you’re revising approaches, understanding problem patterns, or looking for clean code implementations, this walkthrough provides simple yet detailed insights into each solution
AAnuj Joshi
9/22/2025
2b55c6ea-762e-8099-997b-e27625d9adc5
Leetcode
Contest
Leetcode Weekly Contest 476
A concise guide solving LeetCode Weekly Contest 477 using prefix sums, XOR tricks, subarray logic, and smart optimization techniques. The problems include concatenating non-zero digits, finding the maximum balanced XOR subarray length, and determining the number of effective subsequences.
AAnuj Joshi
11/24/2025
25f5c6ea-762e-8075-9541-e6f3a27b13d5
Leetcode
Contest
Leetcode Weekly Contest 144
This blog covers the 144th LeetCode Weekly Contest, which featured four problems ranging from string manipulation to tree operations. The problems included: ‘Defanging an IP Address,’ ‘Corporate Flight Bookings,’ ‘Delete Nodes and Return Forest,’ and ‘Maximum Nesting Depth of Two Valid Parentheses Strings.’ In this write-up, I provide clear problem statements, intuitive approaches, and efficient C++ solutions with explanations. Whether you’re preparing for future contests or revising concepts like prefix sums, tree traversal, or parentheses depth balancing, this blog serves as a simple and detailed guide.
AAnuj Joshi
8/30/2025
25f5c6ea-762e-8057-b53c-cae9bb0de061
Leetcode
POTD
Valid Sudoku
To validate that created partially filled sudoku board is valid or not
AAnuj Joshi
8/30/2025
2535c6ea-762e-80ab-8722-f5134f791c47
Quiz
LMS
Ekalavya - The Future of Learning
An ed-tech SaaS built with Next.js and Supabase, providing credit-based multiplayer quizzes, AI-powered tutors, and adaptive learning modules. With features like Quizzes, leaderboards, and referral systems, future updates will expand into a comprehensive platform for interactive, gamified, and multilingual learning experiences.
AAnuj Joshi
8/18/2025