3365. Rearrange K Substrings to Form Target String | HashMap

  Рет қаралды 355

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 2
@ahappyperson6530
@ahappyperson6530 24 күн бұрын
I have one more approach to this. 1. Add those partitioned substrings to arrays. i.e., for both 's' and 't' 2. Then sort the arrays. 3. return arr1.equals(arr2) I know it is N.LogN (less efficient), but it is an interesting approach
@ashersamuel958
@ashersamuel958 20 күн бұрын
can't believe i didn't solve this during the contest. its basically anagrams problem if you consider the partitions :(
3085. Minimum Deletions to Make String K-Special | DP | Hash Table
16:14
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 40 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 15 МЛН
Take K of Each Character From Left and Right | Leetcode 2516
22:38
SQL Portfolio Project | Data Analytics | Danny's Diner SQL Challenge
1:18:13
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 173 М.
Longest Repeating Character Replacement - Leetcode 424 - Python
20:44
I tried React and it Ruined My Life
1:19:10
Tsoding Daily
Рет қаралды 155 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,3 МЛН