Find Numbers With Even Number Of Digits | Multiple Ways | Leetcode 1295 | codestorywithMIK
Whatsapp Community Link : https://www.whatsapp.com/channel/0029Va6kVSjICVfiVdsHgi1A
Hi Everyone, this is the 83rd video of our Playlist "Leetcode Easy".
Now we will be solving an Easy problem on Array - Find Numbers With Even Number Of Digits | Multiple Ways | Leetcode 1295 | codestorywithMIK
We will solve it using multiple ways. Counting digits can be done in many ways and we will discuss them in this video.
Problem Name : Find Numbers With Even Number Of Digits | Multiple Ways | Leetcode 1295 | codestorywithMIK
Company Tags : will update later
Code Github(C++ & JAVA) - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Arrays/Leetcode Easy/Find Numbers With Even Number Of Digits.cpp
Leetcode Link : https://leetcode.com/problems/find-numbers-with-even-number-of-digits/description
My DP Concepts Playlist : • Roadmap for DP | How to Start DP ? | ...
My Graph Concepts Playlist : • Graph Concepts & Qns - 1 : Graph will...
My Segment Tree Concepts Playlist : • Segment Tree | Introduction | Basics ...
My Recursion Concepts Playlist : • Introduction | Recursion Concepts And...
Trie Playlist - • Word Search II (Google, Amazon, Meta,...
Difference Array Technique: Concepts & Qns : • Introduction | What | How | Differenc...
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK
Subscribe to my channel : / @codestorywithmik
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Video Summary :
Approach-1 (Using simple loop and counting digits):
Counts digits of each number by repeatedly dividing by 10 and checks if the count is even.
Approach-2 (Converting to string):
Converts each number to a string and checks if the string length (number of digits) is even.
Approach-3 (Using floor):
Uses the mathematical formula floor(log10(num)) + 1 to determine digit count and checks for evenness.
Approach-4 (Using ceil):
Applies ceil(log10(num + 1)) to approximate digit count and checks if it’s even.
Approach-5 (Using constraints):
Uses known numeric ranges with even digits to directly check if a number belongs to one of those ranges.
✨ Timelines✨
00:00 - Introduction
0:23 - Motivation
0:49: - Problem Explanation
1:50 - Approach-1
3:37 - Approach-2
4:46 - Approach-3
6:03 - Approach-4
6:41 - Approach-1
#MIK #mik #Mik
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #coding #programming #100daysofcode #developers #techjobs #datastructures #algorithms #webdevelopment #softwareengineering #computerscience #pythoncoding #codinglife #coderlife #javascript #datascience #leetcode #leetcodesolutions #leetcodedailychallenge #codinginterview #interviewprep #technicalinterview #interviewtips #interviewquestions #codingchallenges #interviewready #dsa #hindi #india #hindicoding #hindiprogramming #hindiexplanation #hindidevelopers #hinditech #hindilearning #helpajobseeker #jobseekers #jobsearchtips #careergoals #careerdevelopment #jobhunt #jobinterview #github #designthinking #learningtogether #growthmindset #digitalcontent #techcontent #socialmediagrowth #contentcreation #instagramreels #videomarketing #codestorywithmik #codestorywithmick #codestorywithmikc #codestorywitmik #codestorywthmik #codstorywithmik #codestorywihmik #codestorywithmiik #codeistorywithmik #codestorywithmk #codestorywitmick #codestorymik #codestorwithmik