Day 25 of 100 days of codeToday, I successfully tackled two CodeChef problems. question 1 #include <bits/stdc++.h> using namespace std; bool solve(int n){ int sum=0; for(int i =0;i<n;i++){ int x; cin>>x; sum+=x; } return (sum%2==1); } int main(){ int t;...Nov 21, 2023·1 min read
Day 19 of DSA challengeIt's the 19th day, and I participated in a CodeChef contest today. Managed to solve the first two questions successfully, but unfortunately, I encountered a Time Limit Exceeded (TLE) issue with the third one. I spent the entire duration brainstorming...Nov 15, 2023·1 min read
Day 18 of Days of DsaIn my opinion, it's important to acknowledge and learn from failures. While tackling the daily LeetCode problem, my task was to find all unique palindromes of length three that are subsequences of the given string, 's.' Initially, I formulated a logi...Nov 14, 2023·1 min read
Day 17 of 100 Days of DSADay 17: Sorting Vowels in a String Today, as part of my 100 days of DSA challenge, I tackled a medium-level problem from LeetCode. The task was to sort the vowels in a given string. Let me walk you through how I approached and solved this problem. Fi...Nov 13, 2023·2 min read
Day 16 of 100 Days of Dsa ChallengeToday, I tackled the K-th Symbol in a Grammar problem on LeetCode. Initially, I approached the problem by using a binary string, but consistently faced "memory limit exceeded" issues. Despite spending around 2 hours attempting to optimize my code, I ...Nov 12, 2023·2 min read
Day 15 of 100 Days of DSA ChallengeHey fellow coders! Today, on Day 15 of my 100-day DSA challenge, I tackled a LeetCode problem called "Count the Good Numbers." Let me walk you through the journey. The task was counting 'good' numbers in a given range. What's a 'good' number, you ask...Nov 11, 2023·2 min read
Day 14: Exploring Minimax Algorithm in Game StrategyWelcome back to my 100-day Data Structures and Algorithms (DSA) challenge! On day 14, I encountered a fascinating problem on LeetCode called "Predict the Winner." As I delved into the solution, I stumbled upon a concept I hadn't explored before—the M...Nov 10, 2023·3 min read