Largest Number formed from an Array | Largest Number | Comparators Application | Leetcode 179

  Рет қаралды 11,118

codestorywithMIK

codestorywithMIK

Күн бұрын

Пікірлер: 32
@oppo-px5hf
@oppo-px5hf 5 ай бұрын
i want to give you suggestion that after doing code just give us some follow up question that interviewer might ask for this particular Q , if possible u can give us some hint or bcz we take this as challenge we will figure it our own....
@aws_handles
@aws_handles 10 ай бұрын
Your voice does all the magic. Thanks a lot 👌🏻
@praveenyadav3
@praveenyadav3 10 ай бұрын
Thank you bro You're such an inspiration
@iamnoob7593
@iamnoob7593 5 ай бұрын
Thanks a ton , Beautiful explanation
@gui-codes
@gui-codes 3 ай бұрын
man you explain so well. thanks a lot
@wearevacationuncoverers
@wearevacationuncoverers 10 ай бұрын
Thanks a lot mik for your efforts.
@gauravbanerjee2898
@gauravbanerjee2898 10 ай бұрын
Thank you bhaiya 😇😇
@souravranjannayak1799
@souravranjannayak1799 3 ай бұрын
thank you sir grate help
@shikharpandya4927
@shikharpandya4927 3 ай бұрын
Nice intuition
@EB-ot8uu
@EB-ot8uu 10 ай бұрын
thanks a lot for this playlist
@abhishekkesharwani7453
@abhishekkesharwani7453 10 ай бұрын
can we just apply bucket sort (min length string times place ) and concatenate at the last?
@thefinalfit
@thefinalfit 10 ай бұрын
One stop solution
@surajsidar3280
@surajsidar3280 5 ай бұрын
I was asked this question in an Apple SDET interview. The interviewer told me about permutation solutions. What interviewer wants to test by asking this type of question (for Test Engineer) role
@iamnoob7593
@iamnoob7593 5 ай бұрын
Are they asking questions from all topics like dp,graphs etc
@surajsidar3280
@surajsidar3280 5 ай бұрын
@@iamnoob7593 These types of difficult questions are not expected for an SDET role. The interviewer was unaware of the terms, such as Brute Force. He asked me first "two sum" problem.
@newglobal7271
@newglobal7271 10 ай бұрын
Bhaiya please ajj(5th march) ka GFG ka POTD ka video bana dena pls
@DrOnZeR2022
@DrOnZeR2022 3 ай бұрын
First solution comes to mind is I generate all permutation and store the maximum number but it takes o(n!) which is very large😢
@tutuimam3381
@tutuimam3381 10 ай бұрын
❤❤❤❤❤❤
@manasakushii9583
@manasakushii9583 10 ай бұрын
Thank you
@abhishekkesharwani7453
@abhishekkesharwani7453 10 ай бұрын
Sir, can you please make video of comparator in java also
@detaincoder
@detaincoder 3 ай бұрын
one test case was not passing so added this if (all_of(nums.begin(), nums.end(), [](int n){ return n == 0; })) { return "0"; }
@codestorywithMIK
@codestorywithMIK 3 ай бұрын
🙌
@EatCodeAndSleep
@EatCodeAndSleep 10 ай бұрын
can u make a video on segment trees plzzz
@jimmyaghera1897
@jimmyaghera1897 3 ай бұрын
app pehle apna collage me the kya ?
@YashikaSharma-u7r
@YashikaSharma-u7r 7 ай бұрын
why auto is used before mycomparator?
@codestorywithMIK
@codestorywithMIK 7 ай бұрын
It’s just a good practice in C++. The auto keyword allows the compiler to automatically deduce the type of a variable. This is particularly useful in templates or when the exact type is complex or lengthy. For comparators, it simplifies the code by removing the need to explicitly specify the return type. It also improves readability.
@YashikaSharma-u7r
@YashikaSharma-u7r 7 ай бұрын
@@codestorywithMIK thanks a lot :)
@souravjoshi2293
@souravjoshi2293 10 ай бұрын
🔥🔥🔥
@shashwatnandan5083
@shashwatnandan5083 10 ай бұрын
please upload today leetcode daily challange
@ajinkyakhete1151
@ajinkyakhete1151 10 ай бұрын
Already uploaded bro
@codestorywithMIK
@codestorywithMIK 10 ай бұрын
Bag of Tokens | Greedy Explanation | Google | Leetcode 948 kzbin.info/www/bejne/gnTbYoqwob6arNk
@dayashankarlakhotia4943
@dayashankarlakhotia4943 10 ай бұрын
leetcode solution public String largestNumber(int[]nums){ String s=Arrays.stream(nums).mapToObj(String::valueOf).sorted((a,b)->(b+a).compareTo(a+b)).collect(Collectors.joining(" ")); return s.startsWith("00)?"0":s; } gfg. public String printLargest(int n,String[]arr){ if(arr.length==1) return arr[0]; Arrays.sort(arr,(a,b)->(b+a).compareTo(a+b)); return String.join(" ",arr); }
Length of Last Word | 2 Ways | Leetcode 58 | Amazon | codestorywithMIK
13:46
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 724 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 193 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 14 М.
2 Years Of Learning C | Prime Reacts
22:24
ThePrimeTime
Рет қаралды 326 М.
Knuth-Morris-Pratt KMP String Matching Algorithm | Search Pattern | GFG POTD
1:05:36
Largest Number - Leetcode 179 - Python
10:17
NeetCode
Рет қаралды 68 М.
Understanding Ownership in Rust
25:30
Let's Get Rusty
Рет қаралды 275 М.