2.95K subscribers
7 photos
4 files
237 links
This channel is all about programming. Happy coding :)
Download Telegram
NOTE:
Resuming video making today.
Today's video will come by 2 PM IST
Interview Expectations in 2025
LIVE session

Learn :-
1. The current marking standards of top companies
2. What to expect in changing focus from online to offline (on-site) interviews
3. Interview level from OA to on-site
4. Strategies which works in on-site rounds
5. Difficulty level analysis round-wise
6. How DSA and System Design expectations are different
+MUCH MORE…

We will have a QnA session too, where you can ask any of your questions too.

JOIN us today: https://chat.whatsapp.com/H9Yae2Kjw3J...

Date: 9th April
Day: wednesday
Time: 7:30 PM IST / 7 AM PST
Fee: 99 INR / 2 USD
Even though I had mentioned not to make EASY problems starting this month, still I see that today's problem is interesting, hence it will be uploaded by afternoon.
Today's question is EASY and should be solvable :)
Hence, no upload today.
No Video today (EASY problem)
2843. Count Symmetric Integers

CPP reference code:-
class Solution {
bool checkSymmetric(string no){
int size = no.size();
if(size&1)
return false;

int left_sum = 0;
int right_sum = 0;
for(int i=0;i<(size+1)/2;++i){
left_sum += no[i];
right_sum += no[size-i-1];
}
return left_sum==right_sum;
}
public:
int countSymmetricIntegers(int low, int high) {
int count = 0;
for(int no=low;no<=high;++no){
if(checkSymmetric(to_string(no)))
count++;
}
return count;
}
};