Merge Sorted Array | Leetcode 88
11:36
Ugly Number | Leetcode 263
8:30
Жыл бұрын
Move Zeros | LeetCode problem 283
3:53
Add Digits | LeetCode problem 258
5:40
Пікірлер
@mayukh_
@mayukh_ 15 сағат бұрын
Essentially this not in constant space. Because in the for loop, you are creating another copy for the array.
@SumitChouhan-ss5tt
@SumitChouhan-ss5tt 17 сағат бұрын
I just have a silly questions?? How much time the loop run ???
@ashishnannaware7349
@ashishnannaware7349 22 сағат бұрын
what if array=["Thik","kuchh nhi","Thik h"] as per your code output is => Thik but output will be "" (blank)
@GulshanKumar-rm2fz
@GulshanKumar-rm2fz 3 күн бұрын
maam what if there is two missing number then this code will be failed
@mayanksinghal1400
@mayanksinghal1400 3 күн бұрын
Hello.. Thankyou for this video. Can you explain please why can't we use overflow condition like if (rev*10 > Integer.MAX_VALUE || rev*10 < Integer.MIN_VALUE)
@anshulsen3357
@anshulsen3357 3 күн бұрын
regex kese kaam kr rha h maam @Technosage
@samorouji2842
@samorouji2842 5 күн бұрын
legend
@start1learn-n171
@start1learn-n171 5 күн бұрын
Tq😊
@Naveenkumar-p4i
@Naveenkumar-p4i 6 күн бұрын
here's a single word 0ms code for it class Solution { public int strStr(String haystack, String needle) { return haystack.indexOf(needle); } }
@Riteshpc-c3x
@Riteshpc-c3x 6 күн бұрын
thanks
@sauryakumargupta3008
@sauryakumargupta3008 6 күн бұрын
Outstanding explanation in such a ez way <3 !
@TheBeastCodist
@TheBeastCodist 6 күн бұрын
"Great explanation on removing duplicates from a sorted array! 𝑰 𝒓𝒆𝒄𝒆𝒏𝒕𝒍𝒚 𝒎𝒂𝒅𝒆 𝒂 𝒗𝒊𝒅𝒆𝒐 𝒐𝒏 𝒕𝒉𝒆 𝒔𝒂𝒎𝒆 𝒕𝒐𝒑𝒊𝒄 , exploring different approaches. It's always interesting to see how others tackle this problem."
@sandykl
@sandykl 8 күн бұрын
PROBLEM SOLVED!
@Caped_Crusader7
@Caped_Crusader7 8 күн бұрын
why visited = -1?
@vikasvarshney1681
@vikasvarshney1681 11 күн бұрын
Good explanation.!!
@beesettiswathi7162
@beesettiswathi7162 13 күн бұрын
great explanation mam..thank you so much
@narendrabudaniya4353
@narendrabudaniya4353 14 күн бұрын
mam your code is left the last element always so return count is always less one here is the write code int pointer = 0; for (int i=0; i<nums.length-1; i++){ if (nums[i] != nums[i+1]){ nums[++pointer] = nums[i+1]; } } return nums.length ==0 ? 0 : pointer+1;
@gastonhitw720
@gastonhitw720 16 күн бұрын
34:57 when you are in this screen is there a way to use vmware esxi gui on the same server? or it has to be managed yes or yes from that ip address in a browser?
@ganeshjaggineni4097
@ganeshjaggineni4097 17 күн бұрын
NICE SUPER EXCELLENT MOTIVATED
@ujjwaldas2302
@ujjwaldas2302 17 күн бұрын
you dint verified the case that majority element should be more the n/2 ????
@ganeshjaggineni4097
@ganeshjaggineni4097 17 күн бұрын
NICE SUPER EXCELLENT MOTIVATED
@helloworld3975
@helloworld3975 19 күн бұрын
amazing solution
@hiteshsuthar1097
@hiteshsuthar1097 19 күн бұрын
Tnx, changing broadband speed options really worked well
@HiteshGorantla
@HiteshGorantla 19 күн бұрын
Is there a way to automate it through CLI ?
@TechnosageLearning
@TechnosageLearning 19 күн бұрын
You can use Python library pyvmomi. Or if you need CLI you can use ovftool offered by vmware.
@GauravRaj-bi9kg
@GauravRaj-bi9kg 20 күн бұрын
why u have stop the series you may complete it all plzzzzzzzzzz
@TechnosageLearning
@TechnosageLearning 20 күн бұрын
Hi Starting very soon..working on it..Please stay tuned
@GauravRaj-bi9kg
@GauravRaj-bi9kg 20 күн бұрын
@@TechnosageLearning as soon as possible am waiting
@allasandeep1466
@allasandeep1466 23 күн бұрын
class Solution { public int search(int[] nums, int target) { if(nums.length == 0 || nums == null){ return -1; } int n= nums.length; int i; for( i=0;i<n;i++){ if(nums[i] == target){ return i; } } return -1; } }
@zarahassan6058
@zarahassan6058 25 күн бұрын
I'm working with a large dataset and the data is stored in json files. Json file Holds data,path is correct too,not parsing the data through any api still it gives the same error. Even i tried multiple ways. Why is this happening?
@pragatii9054
@pragatii9054 26 күн бұрын
Thank you
@ka23853
@ka23853 28 күн бұрын
Please share your code series of java
@dhruvavishwakarma253
@dhruvavishwakarma253 29 күн бұрын
Why are you not solving in Leetcode , In Leetcode this code didn't pass all test cases
@maheshdurishetti7370
@maheshdurishetti7370 Ай бұрын
What if we give values like 1,2,3,3,3,3,5,6,6
@nandinideshpande1467
@nandinideshpande1467 Ай бұрын
very well explained!!
@navalprakash3727
@navalprakash3727 Ай бұрын
class Solution { public int search(int[] nums, int target) { for(int i=0; i<nums.length; i++){ if(nums[i]==target){ return i; } } return -1; } } this colde is also acceptable
@ChinmayPatil-22
@ChinmayPatil-22 26 күн бұрын
bro it's time complexity is O(n) we have to do the question by O(log n)✌
@Mohd.FaisalKhan-oo9qj
@Mohd.FaisalKhan-oo9qj Ай бұрын
please continue your leetcode problems series
@TechnosageLearning
@TechnosageLearning Ай бұрын
We will be continuing the series soon. We are working on it
@sumitSdhondikar
@sumitSdhondikar Ай бұрын
vs code me public boolean method write kiya to code run nhi huwa kiyu
@musamehdiyevv
@musamehdiyevv Ай бұрын
public void rotate(int[] nums, int k) { int temp = 0; while (k > 0) { temp = nums[nums.length - 1]; for (int i = nums.length - 1; i > 0; i--) { nums[i] = nums[i-1]; } nums[0] = temp; k--; } }
@musamehdiyevv
@musamehdiyevv Ай бұрын
class Solution { public int removeDuplicates(int[] nums) { int k = 1; for (int i = 1; i < nums.length; i++) { if (nums[i] != nums[k-1]) { nums[k] = nums[i]; k++; } } return k; } }
@AnjaliYadav-qv4sb
@AnjaliYadav-qv4sb Ай бұрын
it is very useful...thank you
@imvishu09
@imvishu09 Ай бұрын
please explain this -> nums[count] = nums[i];
@user-kb1fk7cd6w
@user-kb1fk7cd6w Ай бұрын
how to use this method when user input the array size and values? is that possible? pls rwply
@11csepratikshaargulewar71
@11csepratikshaargulewar71 Ай бұрын
Didi you don't explain why we have to place i, j or k pointers at that position only 😢 . Why can't we start our pointers from somewhere else . You should explain also as it will help with thought process
@bibhutibaibhavbora8770
@bibhutibaibhavbora8770 3 күн бұрын
Because we are starting from some specific point that is num1 and nums2 places because these arrays are sorted already. We can't randomly put pointers
@alwaysgrowing369
@alwaysgrowing369 Ай бұрын
THANKS BRO!
@sanjaykumarpandey4325
@sanjaykumarpandey4325 Ай бұрын
Why you are dividing by 10 to check overflow condition
@prateekkumar299
@prateekkumar299 Ай бұрын
reversed * 10 > INT_MAX would mean performing the multiplication first which could already cause overflow
@paniknoob6439
@paniknoob6439 Ай бұрын
what does the k%nums.length; do?
@jason-rv5sp
@jason-rv5sp Ай бұрын
Great explanation. the key point is nums[i] != num[i-2]. But why in the code it becomes n != nums[i-2] ?
@amanparmar1170
@amanparmar1170 Ай бұрын
Can we also solve the same problem with help of for loop
@reon_fernandes
@reon_fernandes 11 күн бұрын
While loop?
@SayanBanikAuthor
@SayanBanikAuthor Ай бұрын
Very Nice Video! Thanks Ma'am
@SayanBanikAuthor
@SayanBanikAuthor Ай бұрын
7:05
@venkateshvenkat5335
@venkateshvenkat5335 Ай бұрын
u r explained in java what abiut python
@user-ph5ek8tg5l
@user-ph5ek8tg5l Ай бұрын
When you have already converted the string to lower case there was no need to check for A-Z in regex.