Author
Rikam Palkar
.NET Full Stack, DSA, C#, Blazor, WPF
Mumbai (India)
Recognitions & awards
    • Jun 2020
    • Jun 2021
    • Jun 2022
    • Jun 2023
    • Jun 2024
Badges
Awards & Certifications
About
"Microsoft MVP", Five-time C# Corner "Most Valuable Professional", "Verified author" on Medium and a "Top voice" on LinkedIn, Author behind 'WPF Simplified' and 'Blazor Simplified'.I'm passionate about making the world a better place by writing scalable, efficient code, I'm skilled at Blazor, WPF, C#, and Data Structures & Algorithms.
Activity

I tried to optimize, but brute force seems to be the way.
Leetcode 2176
Problem:
https://leetcode.com/problems/count-equal-and-divisible-pairs-in-an-array/?envType=daily-question&envId=2025-04-17

Solution: https://github.com/RikamPalkar/DSA-Simplified/blob/main/LeetCode/2176. Count Equal and Divisible Pairs in an Array.cs

Image previewImage preview

Docker vs. Virtual Machines (VMs)

3d 1k 0

500 #LeetCode questions later & if you ask me to explain recursion, I’ll just say it might actually be a pyramid scheme!


Profile:
https://leetcode.com/u/Rikam/


#DSA #ProblemSolving #Programming

Image previewImage preview

% vs string builder

Time: O((high - low + 1) * sb) => O(high−low)

Space: O(1)


#Leetcode: 2843. Count Symmetric Integers

#problem:
https://leetcode.com/problems/count-symmetric-integers/?envType=daily-question&envId=2025-04-11


#Code: https://github.com/RikamPalkar/DSA-Simplified/blob/main/LeetCode/2843. Count Symmetric Integers.cs


#DSA #ProblemSolving

Image previewImage preview

Easy, but I aged three years trying to decode the description.


Time: O(2n) =>O(n)

Space: O(n)


#Leetcode 3375. Minimum Operations to Make Array Values Equal to K


#Problem:
https://leetcode.com/problems/minimum-operations-to-make-array-values-equal-to-k/description/?envType=daily-question&envId=2025-04-09


#Solution: https://github.com/RikamPalkar/DSA-Simplified/blob/main/LeetCode/3375. Minimum Operations to Make Array Values Equal to K.cs


#DSA #ProblemSolving #Programm

Image previewImage preview

Apparently (i + 1) / 3 was too optimistic!

Easy:
Time: O(n)
Space: O(n)

Leetcode 3396

Code:
https://github.com/RikamPalkar/DSA-Simplified/blob/main/LeetCode/3396. Minimum Number of Operations to Make Elements in Array Distinct.cs

Problem: https://leetcode.com/problems/minimum-number-of-operations-to-make-elements-in-array-distinct/?envType=daily-question&envId=2025-04-08

DSA, Programming

Image previewImage preview

Leetcode 368. Largest Divisible Subset

Algorithm
1. Sort the input array in ascending order to ensure that if a is divisible by b, an appears after b.

2. Create a dp array where dp[i] represents the size of the largest divisible subset that ends at index i.


3. For each element at index r from left to right, check all previous elements at indices less than r. If nums[r] is divisible by nums[l], update dp[r] as the maximum of its current value and dp[l] plus 1.

4. Backtrack from the end

Image previewImage preview

Re: Textboxes Not Working

Re: Why we need Data Templates in XAML UI Design ?

Re: c#.net listbox update problem

Re: how to update VB .net code to C#

Re: How to display below data using Sql Query

Docker: Install, Run, and Test Your First Container - DotNet series

1w 3.3k 0

O(n^3) => O(n)

Leetcode 2873. Maximum Value of an Ordered Triplet I

Code:
https://github.com/RikamPalkar/DSA-Simplified/blob/main/LeetCode/2873. Maximum Value of an Ordered Triplet I.cs

Image previewImage preview

Dark or Light, Choose Your Side You Must: Theming in Blazor - Yoda

2w 5.8k 0

Dynamic programming: Bottom-Up

Leetcode 2140: Solving Questions With Brainpower


Time: O(n), Space O(n)

Code:
https://github.com/RikamPalkar/DSA-Simplified/blob/main/LeetCode/2140. Solving Questions With Brainpower.cs


DSA

Image previewImage preview

#Leetcode 2033: Minimum Operations to Make a Uni-Value Grid
#Approach: Sort and Compare mid

Time: O(n log n)
Space: O(n)

Code:
https://github.com/RikamPalkar/DSA-Simplified/blob/main/LeetCode/2033. Minimum Operations to Make a Uni-Value Grid.cs

#DSA #Programming

Image previewImage preview

How to Dependency Inject in Blazor Applications

3w 12k 1

Inheritance in Blazor? Because Components Don’t Have to Start from Scratc...

4w 13.9k 0

Making Sense of yield in C#

Mar 18 15.6k 0