2911. Minimum Changes to Make K Semi-palindromes | Weekly Leetcode 368

  Рет қаралды 1,347

codingMohan

codingMohan

Күн бұрын

Пікірлер: 9
@codingmohan
@codingmohan Жыл бұрын
Sorry for the late upload. Was watching World cup and it was worth finally :)
@prakhargarg4166
@prakhargarg4166 2 күн бұрын
For case, s = "edaswf" k = 1, why answer is 2 and not 3
@gauravgautam5963
@gauravgautam5963 Жыл бұрын
Best explanation , Thankyou ❤❤
@durgaprasadvelagapudi5263
@durgaprasadvelagapudi5263 Жыл бұрын
in the psuedo-code to calculate the semi-palindome for a string of len = n, while calculating right , n should be replaced with len. Understanding the problem statement around semi-palindrome for me was impossible during the contest. your explanation of the problem ask and the logic around calculating min changes to make a string semi-palindome is very intuitive.
@codingmohan
@codingmohan Жыл бұрын
Oh yes. I somehow missed while writing. But I think the intuition should be clear :) Glad you find it helpful :)
@teqarine5752
@teqarine5752 Жыл бұрын
while calculating the factors, why have you started i from j+j and not from j itself? j is also a factor of itself isnt it?
@codingmohan
@codingmohan Жыл бұрын
It is but the definition of semi-palindrome doesn’t allow that - d < len
@gauravmandal01
@gauravmandal01 Жыл бұрын
i was waiting for this video all the other contest video are literally broken thanks a lot i was able to solve 3 problems
@lakshyaagrawal6682
@lakshyaagrawal6682 Жыл бұрын
Thanks for the video Can you please make a new video on 2902. Count of Sub-Multisets With Bounded Sum Your code in that video is giving TLE and I think the other approach will be a really good learning for us.
3225. Maximum Score From Grid Operations | Leetcode Biweekly 135
1:04:57
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 243 М.
3219. Minimum Cost for Cutting Cake II | Weekly Leetcode 406
1:03:26
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 198 М.
FASTER JavaScript In 2025 With Sets
13:13
Jack Herrington
Рет қаралды 26 М.