Total Characters in String After Transformations II | Binary Exponentiation | Leetcode 3337 | MIK
Whatsapp Community Link : https://www.whatsapp.com/channel/0029Va6kVSjICVfiVdsHgi1A
Matrix Exponentiation | n Degree Linear Recurrence - • Matrix Exponentiation | n Degree Line...
Hi Everyone, this is the 30th video of our Playlist "Maths Playlist : Popular Interview Problems".
Now we will be solving an expert level Maths problem - Total Characters in String After Transformations II | Detailed Explanation | Using Binary Exponentiation | Leetcode 3337 | codestorywithMIK
We will break it down into simple steps to make it easier to understand. We will deep dive into the Maths behind it.
Problem Name : Total Characters in String After Transformations II | Detailed Explanation | Using Binary Exponentiation | Leetcode 3337 | codestorywithMIK
Company Tags :
My solutions on Github(C++ & JAVA) - https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Mathematical/Total Characters in String After Transformations II.cpp
Leetcode Link : https://leetcode.com/problems/total-characters-in-string-after-transformations-ii
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 :
The approach models character transformations as a matrix where each element tracks transitions between letters. Repeated transformations are handled efficiently using matrix exponentiation, similar to fast exponentiation. The character frequency of the initial string is treated as a vector, which is transformed using the powered matrix. This avoids simulating each step, achieving logarithmic time complexity with respect to the number of transformations.
✨ Timelines✨
00:00 - Introduction
0:42 - Motivation
0:55 - Problem Explanation
6:00 - Thought Process
7:30 - Finding Relation with Matrix Exponentiation
12:26 - How to find T Matrix ?
23:12 - Code for filling T Matrix
27:58 - Why power is t ?
30:40 - Finding T * initial_freqency vector
35:47 - Coding it up
#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
Other Videos By codestorywithMIK
Other Statistics
Counter-Strike: Source Statistics For codestorywithMIK
At this time, codestorywithMIK has 66,246 views for Counter-Strike: Source spread across 9 videos. Less than an hour worth of Counter-Strike: Source videos were uploaded to his channel, making up less than 0.10% of the total overall content on codestorywithMIK's YouTube channel.