Пікірлер
@PriyadharshiiniK
@PriyadharshiiniK Күн бұрын
Bro apart from 9 entha number vachu modulus pannalum answer varuma
@PriyadharshiiniK
@PriyadharshiiniK 2 күн бұрын
Bro super explanation💥. Its useful for my interview preparation😇
@AlgoTamizha
@AlgoTamizha Күн бұрын
glad it was helpful. keep supporting
@pikachugaming4211
@pikachugaming4211 4 күн бұрын
super explaination ........ you deserve more
@vishwa_k
@vishwa_k 4 күн бұрын
Wrong bro time complexity was O(3N) not O(N) Because you traverse the array three times The edge case does not require
@vishwa_k
@vishwa_k 4 күн бұрын
Optimized Version: class Solution { public: vector<int> productExceptSelf(vector<int>& nums) { int n = nums.size(); vector<int> result(n, 1); // Compute left products directly in result array int left = 1; for (int i = 0; i < n; i++) { result[i] = left; left *= nums[i]; } // Compute right products directly in result array int right = 1; for (int i = n-1; i >= 0; i--) { result[i] *= right; right *= nums[i]; } return result; } };
@e.rohini5576
@e.rohini5576 5 күн бұрын
java
@arunkumar-nm3py
@arunkumar-nm3py 5 күн бұрын
hi your explanation is very clear 🙂, but i have a doubt, you said this is 0(n) but finally you use nested loop, these kind of area i always get confused.
@AlgoTamizha
@AlgoTamizha 4 күн бұрын
yes, nested loop doesnt always mean n^2. Maybe you can think of it as how many times we access each element. even though there are any number of loops, if we only access elements once it is still O(N).
@Msdian9455
@Msdian9455 6 күн бұрын
Bro set concepts use pannuga
@arulmozhi4580
@arulmozhi4580 6 күн бұрын
class Solution { public int removeDuplicates(int[] nums) { int count = 1, item = nums[0]; for(int i = 1;i<nums.length;i++) { if(item != nums[i]) { item = nums[i]; nums[count++] = nums[i]; } } return count; } } not equal to ethu konjam fast ah iruku 0ms but space konjam efficient ila
@AlgoTamizha
@AlgoTamizha 6 күн бұрын
nice
@TimePass-xi4gm
@TimePass-xi4gm 6 күн бұрын
Keep posting leetcode problems
@eceashok2065
@eceashok2065 7 күн бұрын
Bro math function use pandraku bathila r ange vachi 1 to 6 set pannalam bro
@AlgoTamizha
@AlgoTamizha 6 күн бұрын
yeah adhuvum panlam
@rajeshkannan8608
@rajeshkannan8608 11 күн бұрын
Now they added a new constraint You must solve the problem without modifying the array nums and using only constant extra space.
@gireeswar18
@gireeswar18 12 күн бұрын
50th like key: Lower the time means higher the speed, we can use a bucket to store the time from a particular position, and eliminating the need for sorting (n logn) -> n my code: public static int carFleet(int target, int[] position, int[] speed) { int fleets = 0; double maxTime = 0; int n = position.length; double[] times = new double[target]; for (int i = 0; i < n; i++) { times[position[i]] = (double) (target - position[i]) / speed[i]; } for (int i = target - 1; i >= 0; i--) { if (times[i] > maxTime) { fleets++; maxTime = times[i]; } } return fleets; }
@SujithSundar-c7l
@SujithSundar-c7l 12 күн бұрын
bro @10:26 that optimal solution X+2 puriyaala bro, how we can say that X+2 we can't find the solution , here
@42_jameskalam22
@42_jameskalam22 12 күн бұрын
asked in zoho 2024 october batch too
@KarthikAllur
@KarthikAllur 15 күн бұрын
Bike manufacturering Java project podunga Tamil la please
@gokulkumar380
@gokulkumar380 16 күн бұрын
Sir airline reservations system project podunga
@Shinchanfanswithcomedy
@Shinchanfanswithcomedy 17 күн бұрын
Please continue this playlist bro
@Barathraj-b3o
@Barathraj-b3o 19 күн бұрын
little bit confusing bro
@AlgoTamizha
@AlgoTamizha 19 күн бұрын
which part bro?
@sriakshayaexercise
@sriakshayaexercise 20 күн бұрын
After program explain the code
@srbgm1573
@srbgm1573 23 күн бұрын
java
@mtime6648
@mtime6648 24 күн бұрын
R and also PL/SQL VARRAY
@saravanakumar2765
@saravanakumar2765 24 күн бұрын
Finally found perfect clear logical explanation video.
@rajyahoob
@rajyahoob 24 күн бұрын
nice solution and explanation algo tamizha 😄
@MOGANAVARSHINIM
@MOGANAVARSHINIM 25 күн бұрын
super explanation 🤩
@drdavid8305
@drdavid8305 26 күн бұрын
Awesome Video
@21flame72
@21flame72 28 күн бұрын
// User function Template for Java class Solution { // Function to find hIndex public int hIndex(int[] citations) { // code here Arrays.sort(citations); int n =citations.length; for(int i=0;i<n;i++){ if(citations[i]>=n-i){ return n-i; } } return 0; } }
@gayuvj
@gayuvj 29 күн бұрын
Bro recently Zoho la intha qn kettanga. Itha solve pannunga bro Qn.nums= {3,4,7,2,1} O/p:{7,2,3,4,1} ->Odd numbers should be sorted in descending order in their corresponding index positions -> even numbers in ascending order without changing their corresponding index positions Solve panni upload pannunga bro
@mythiliscseb2427
@mythiliscseb2427 29 күн бұрын
Bro ,amazon la idhe number of islands question la 0 between two 1s should be considered as bridge nu kuduthanga. adhaiyum bfs traversal la kekkuranga.. so number of islands BFS la epdi nusoli video podunga vro
@KeerthiraajanVaradaradjalou
@KeerthiraajanVaradaradjalou Ай бұрын
Nice explanation Bro 🔥
@lovelysabeer5488
@lovelysabeer5488 Ай бұрын
Some of the problems la question la irukura number integer range ulla irukum but namma (left+right) add pannaila integer range ah vida athigama poirum soo right tha bigger atha left vachu subtract panitu atha divide panitu thirumba left ah add panikurom
@AlgoTamizha
@AlgoTamizha Ай бұрын
👍
@striver_coder
@striver_coder Ай бұрын
❤❤
@programming6177
@programming6177 Ай бұрын
Mid = left + (right - left ) / 2 Reason : if we sum like (left + right) it may be out of integer range so , use left + (right - left ) / 2
@johnvictor-z7b
@johnvictor-z7b Ай бұрын
awesome explanation
@Vasanthvasanth-tq5zl
@Vasanthvasanth-tq5zl Ай бұрын
Daii Badu yaa da sollu tholaiya da video length akuraa
@sabinsesumariyan3687
@sabinsesumariyan3687 Ай бұрын
super
@siranjeevirajendran4067
@siranjeevirajendran4067 Ай бұрын
Semma Video explanation bro. Tamil-a sonnathu innum super!!
@brahadeeshram
@brahadeeshram Ай бұрын
3rd question 10011
@susmithamohan8150
@susmithamohan8150 Ай бұрын
Thanks a lot it seems super easy now
@DineshKumar-xl2yi
@DineshKumar-xl2yi Ай бұрын
use ascii instead of prime numbers
@brahadeeshram
@brahadeeshram Ай бұрын
is this code ok? " String s="123456789"; for (int i=0;i<s.length();i++){ for(int j=0;j<s.length();j++){ if(i==j || i+j==s.length()-1){ System.out.print(s.charAt(j)); }else { System.out.print(" "); } } System.out.println(); "
@brahadeeshram
@brahadeeshram Ай бұрын
Bro this code also give solution : " int[] a={11,31,4,3,9}; int[] b= new int[a.length]; Arrays.sort(a); int s=0,e=a.length-1; for(int i=0;i<a.length;i++){ if(i%2==0){ b[i]=a[e]; e--; }else{ b[i]=a[s]; s++; } } System.out.print(Arrays.toString(b)); " Is this correct?
@YuvarajUV001
@YuvarajUV001 Ай бұрын
Inbuild functions use panalama like Contains() in this problem. allowed ah in competitive programming
@AlgoTamizha
@AlgoTamizha Ай бұрын
yes
@islamiccontents64
@islamiccontents64 Ай бұрын
Zoho ku ponum na java la endha concepts Vara therinja podhum bro . Awt enough ah illa swing um parkanuma bro . Core Java enough ah bro ?
@mohanal8176
@mohanal8176 Ай бұрын
Thank You Sir .. Sir Semma Explanation ❤😁🙏🙏
@premPrema-m2p
@premPrema-m2p Ай бұрын
i can i understand bro , thank you
@premPrema-m2p
@premPrema-m2p Ай бұрын
3097. Shortest Subarray With OR at Least K II // intha sum teach pannunga bro
@kumar-gd6ub
@kumar-gd6ub Ай бұрын
Super explanation ❤
@errorcom-dt5ol
@errorcom-dt5ol 2 ай бұрын
Bro wildcard matching leetcode prblm pani poduga bro
@jananisan207
@jananisan207 2 ай бұрын
Awesome
@thiyamybabygirl2144
@thiyamybabygirl2144 2 ай бұрын
Its november month today challenge. I solved today mrng.
@AlgoTamizha
@AlgoTamizha 2 ай бұрын
🙌
@21flame72
@21flame72 2 ай бұрын
Super bro