Essentially this not in constant space. Because in the for loop, you are creating another copy for the array.
@SumitChouhan-ss5tt17 сағат бұрын
I just have a silly questions?? How much time the loop run ???
@ashishnannaware734922 сағат бұрын
what if array=["Thik","kuchh nhi","Thik h"] as per your code output is => Thik but output will be "" (blank)
@GulshanKumar-rm2fz3 күн бұрын
maam what if there is two missing number then this code will be failed
@mayanksinghal14003 күн бұрын
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)
@anshulsen33573 күн бұрын
regex kese kaam kr rha h maam @Technosage
@samorouji28425 күн бұрын
legend
@start1learn-n1715 күн бұрын
Tq😊
@Naveenkumar-p4i6 күн бұрын
here's a single word 0ms code for it class Solution { public int strStr(String haystack, String needle) { return haystack.indexOf(needle); } }
@Riteshpc-c3x6 күн бұрын
thanks
@sauryakumargupta30086 күн бұрын
Outstanding explanation in such a ez way <3 !
@TheBeastCodist6 күн бұрын
"Great explanation on removing duplicates from a sorted array! 𝑰 𝒓𝒆𝒄𝒆𝒏𝒕𝒍𝒚 𝒎𝒂𝒅𝒆 𝒂 𝒗𝒊𝒅𝒆𝒐 𝒐𝒏 𝒕𝒉𝒆 𝒔𝒂𝒎𝒆 𝒕𝒐𝒑𝒊𝒄 , exploring different approaches. It's always interesting to see how others tackle this problem."
@sandykl8 күн бұрын
PROBLEM SOLVED!
@Caped_Crusader78 күн бұрын
why visited = -1?
@vikasvarshney168111 күн бұрын
Good explanation.!!
@beesettiswathi716213 күн бұрын
great explanation mam..thank you so much
@narendrabudaniya435314 күн бұрын
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;
@gastonhitw72016 күн бұрын
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?
@ganeshjaggineni409717 күн бұрын
NICE SUPER EXCELLENT MOTIVATED
@ujjwaldas230217 күн бұрын
you dint verified the case that majority element should be more the n/2 ????
@ganeshjaggineni409717 күн бұрын
NICE SUPER EXCELLENT MOTIVATED
@helloworld397519 күн бұрын
amazing solution
@hiteshsuthar109719 күн бұрын
Tnx, changing broadband speed options really worked well
@HiteshGorantla19 күн бұрын
Is there a way to automate it through CLI ?
@TechnosageLearning19 күн бұрын
You can use Python library pyvmomi. Or if you need CLI you can use ovftool offered by vmware.
@GauravRaj-bi9kg20 күн бұрын
why u have stop the series you may complete it all plzzzzzzzzzz
@TechnosageLearning20 күн бұрын
Hi Starting very soon..working on it..Please stay tuned
@GauravRaj-bi9kg20 күн бұрын
@@TechnosageLearning as soon as possible am waiting
@allasandeep146623 күн бұрын
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; } }
@zarahassan605825 күн бұрын
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?
@pragatii905426 күн бұрын
Thank you
@ka2385328 күн бұрын
Please share your code series of java
@dhruvavishwakarma25329 күн бұрын
Why are you not solving in Leetcode , In Leetcode this code didn't pass all test cases
@maheshdurishetti7370Ай бұрын
What if we give values like 1,2,3,3,3,3,5,6,6
@nandinideshpande1467Ай бұрын
very well explained!!
@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-2226 күн бұрын
bro it's time complexity is O(n) we have to do the question by O(log n)✌
@Mohd.FaisalKhan-oo9qjАй бұрын
please continue your leetcode problems series
@TechnosageLearningАй бұрын
We will be continuing the series soon. We are working on it
@sumitSdhondikarАй бұрын
vs code me public boolean method write kiya to code run nhi huwa kiyu
@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Ай бұрын
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Ай бұрын
it is very useful...thank you
@imvishu09Ай бұрын
please explain this -> nums[count] = nums[i];
@user-kb1fk7cd6wАй бұрын
how to use this method when user input the array size and values? is that possible? pls rwply
@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
@bibhutibaibhavbora87703 күн бұрын
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Ай бұрын
THANKS BRO!
@sanjaykumarpandey4325Ай бұрын
Why you are dividing by 10 to check overflow condition
@prateekkumar299Ай бұрын
reversed * 10 > INT_MAX would mean performing the multiplication first which could already cause overflow
@paniknoob6439Ай бұрын
what does the k%nums.length; do?
@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Ай бұрын
Can we also solve the same problem with help of for loop
@reon_fernandes11 күн бұрын
While loop?
@SayanBanikAuthorАй бұрын
Very Nice Video! Thanks Ma'am
@SayanBanikAuthorАй бұрын
7:05
@venkateshvenkat5335Ай бұрын
u r explained in java what abiut python
@user-ph5ek8tg5lАй бұрын
When you have already converted the string to lower case there was no need to check for A-Z in regex.