- 52
- 2 558
Coder Infinity
India
Приєднався 5 бер 2023
Longest Subarray of 1's after Deleting One Element Leetcode - 1493 | Coder Infinity
Longest Subarray of 1's after Deleting One Element Leetcode - 1493 | Coder Infinity
Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI-
Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html
Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html
Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html
Remove Element Leetcode - 27 : ua-cam.com/video/4sU7o_dG-Bc/v-deo.html
Pow(x, n) Leetcode - 50 : ua-cam.com/video/XCQnvTSlLiY/v-deo.html
Sqrt(x) Leetcode - 69 : ua-cam.com/video/o49E60waVN4/v-deo.html
Length of Last Word Leetcode - 58 : ua-cam.com/video/uotRlCZcPp4/v-deo.html
Power of Two Leetcode - 231: ua-cam.com/video/ZuwrTwuu9vw/v-deo.html
Valid Anagram Leetcode - 242 : ua-cam.com/video/_9piw89yCHQ/v-deo.html
Add Digits Leetcode - 258 : ua-cam.com/video/NvpZJUYzbXk/v-deo.html
Missing Number Leetcode - 268 : ua-cam.com/video/fCNILLX7e2k/v-deo.html
Find the Duplicate Number Leetcode - 287 : ua-cam.com/video/9wcnoNpDojY/v-deo.html
Power of Three Leetcode - 326 : ua-cam.com/video/U4IrLhpE5mo/v-deo.html
Power of Four Leetcode - 342 : ua-cam.com/video/t-FcKJz6m7Q/v-deo.html
Valid Perfect Square Leetcode - 367 : ua-cam.com/video/Cnhlf-QrkSg/v-deo.html
Fibonacci Number Leetcode - 509 : ua-cam.com/video/KetbKzvWGG4/v-deo.html
Sum of Square Numbers Leetcode - 633 : ua-cam.com/video/oX-7oaChLME/v-deo.html
Binary Search Leetcode - 704 : ua-cam.com/video/Ieniow6tJ4s/v-deo.html
Toeplitz Matrix Leetcode - 766 : ua-cam.com/video/x2EiUtaTexI/v-deo.html
Peak Index In a Mountain Array Leetcode - 852 : ua-cam.com/video/K3W6jhibY90/v-deo.html
Transpose Matrix Leetcode - 867 : ua-cam.com/video/2oJhskoYAQ0/v-deo.html
Add Two Integers Leetcode - 2235 : ua-cam.com/video/Jd_XbIx_NXA/v-deo.html
Smallest Even Multiple Leetcode - 2413 : ua-cam.com/video/-VgvQ35b8Hs/v-deo.html
Sum of Squares of Special Elements Leetcode - 2778 : ua-cam.com/video/3zFNogviCAU/v-deo.html
Minimum Time to Complete Trips Leetcode - 2187 : ua-cam.com/video/5ocGHYCeekU/v-deo.html
Divisible And Non-Divisible Sums Difference Leetcode - 2894 : ua-cam.com/video/OFK8-MYcuM8/v-deo.html
Single Number Leetcode - 136 : ua-cam.com/video/5KEGUtgbYGE/v-deo.html
Single Number II Leetcode - 137 : ua-cam.com/video/Y8DTEoBpFJc/v-deo.html
Running Sum of 1D Array Leetcode - 1480 : ua-cam.com/video/mWvjDxS9FxA/v-deo.html
Smallest Index With Equal Value Leetcode - 2057 : ua-cam.com/video/CDOMRjABmto/v-deo.html
Find Indices with Index and Value Difference I Leetcode - 2903 : ua-cam.com/video/d9lgx5nwofY/v-deo.html
Max Consecutive Ones III Leetcode - 1004 : ua-cam.com/video/DfOwHV3MB6k/v-deo.html
#Leetcode #Leetcode1004 #DataStructures #Python #Java #C++ #TechInterview #CodeChallenge #CodingPractice #LeetCodeEasy #codinglife #ProblemSolving #coding #trending #maxconsecutiveonesiii
Thank you!!
Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI-
Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html
Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html
Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html
Remove Element Leetcode - 27 : ua-cam.com/video/4sU7o_dG-Bc/v-deo.html
Pow(x, n) Leetcode - 50 : ua-cam.com/video/XCQnvTSlLiY/v-deo.html
Sqrt(x) Leetcode - 69 : ua-cam.com/video/o49E60waVN4/v-deo.html
Length of Last Word Leetcode - 58 : ua-cam.com/video/uotRlCZcPp4/v-deo.html
Power of Two Leetcode - 231: ua-cam.com/video/ZuwrTwuu9vw/v-deo.html
Valid Anagram Leetcode - 242 : ua-cam.com/video/_9piw89yCHQ/v-deo.html
Add Digits Leetcode - 258 : ua-cam.com/video/NvpZJUYzbXk/v-deo.html
Missing Number Leetcode - 268 : ua-cam.com/video/fCNILLX7e2k/v-deo.html
Find the Duplicate Number Leetcode - 287 : ua-cam.com/video/9wcnoNpDojY/v-deo.html
Power of Three Leetcode - 326 : ua-cam.com/video/U4IrLhpE5mo/v-deo.html
Power of Four Leetcode - 342 : ua-cam.com/video/t-FcKJz6m7Q/v-deo.html
Valid Perfect Square Leetcode - 367 : ua-cam.com/video/Cnhlf-QrkSg/v-deo.html
Fibonacci Number Leetcode - 509 : ua-cam.com/video/KetbKzvWGG4/v-deo.html
Sum of Square Numbers Leetcode - 633 : ua-cam.com/video/oX-7oaChLME/v-deo.html
Binary Search Leetcode - 704 : ua-cam.com/video/Ieniow6tJ4s/v-deo.html
Toeplitz Matrix Leetcode - 766 : ua-cam.com/video/x2EiUtaTexI/v-deo.html
Peak Index In a Mountain Array Leetcode - 852 : ua-cam.com/video/K3W6jhibY90/v-deo.html
Transpose Matrix Leetcode - 867 : ua-cam.com/video/2oJhskoYAQ0/v-deo.html
Add Two Integers Leetcode - 2235 : ua-cam.com/video/Jd_XbIx_NXA/v-deo.html
Smallest Even Multiple Leetcode - 2413 : ua-cam.com/video/-VgvQ35b8Hs/v-deo.html
Sum of Squares of Special Elements Leetcode - 2778 : ua-cam.com/video/3zFNogviCAU/v-deo.html
Minimum Time to Complete Trips Leetcode - 2187 : ua-cam.com/video/5ocGHYCeekU/v-deo.html
Divisible And Non-Divisible Sums Difference Leetcode - 2894 : ua-cam.com/video/OFK8-MYcuM8/v-deo.html
Single Number Leetcode - 136 : ua-cam.com/video/5KEGUtgbYGE/v-deo.html
Single Number II Leetcode - 137 : ua-cam.com/video/Y8DTEoBpFJc/v-deo.html
Running Sum of 1D Array Leetcode - 1480 : ua-cam.com/video/mWvjDxS9FxA/v-deo.html
Smallest Index With Equal Value Leetcode - 2057 : ua-cam.com/video/CDOMRjABmto/v-deo.html
Find Indices with Index and Value Difference I Leetcode - 2903 : ua-cam.com/video/d9lgx5nwofY/v-deo.html
Max Consecutive Ones III Leetcode - 1004 : ua-cam.com/video/DfOwHV3MB6k/v-deo.html
#Leetcode #Leetcode1004 #DataStructures #Python #Java #C++ #TechInterview #CodeChallenge #CodingPractice #LeetCodeEasy #codinglife #ProblemSolving #coding #trending #maxconsecutiveonesiii
Thank you!!
Переглядів: 24
Відео
Max Consecutive Ones III Leetcode - 1004 | Coder Infinity
Переглядів 463 місяці тому
Max Consecutive Ones III Leetcode - 1004 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ua-ca...
Find Indices with Index and Value Difference I Leetcode - 2903 | Coder Infinity
Переглядів 223 місяці тому
Find Indices with Index and Value Difference I Leetcode - 2903 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element...
Smallest Index With Equal Value Leetcode - 2057 | Coder Infinity
Переглядів 833 місяці тому
Smallest Index With Equal Value Leetcode - 2057 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 ...
Running Sum of 1D Array Leetcode - 1480 | Coder Infinity
Переглядів 903 місяці тому
Running Sum of 1D Array Leetcode - 1480 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ua-cam...
Single Number II Leetcode - 137 | Coder Infinity
Переглядів 533 місяці тому
Single Number II Leetcode - 137 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ua-cam.com/vid...
Single Number Leetcode - 136 | Coder Infinity
Переглядів 643 місяці тому
Single Number Leetcode - 136 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ua-cam.com/video/...
Divisible And Non-Divisible Sums Difference Leetcode - 2894 | Coder Infinity
Переглядів 763 місяці тому
Divisible And Non-Divisible Sums Difference Leetcode - 2894 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Le...
Minimum Time to Complete Trips Leetcode - 2187 | Coder Infinity
Переглядів 653 місяці тому
Minimum Time to Complete Trips Leetcode - 2187 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 :...
Sum of Squares of Special Elements Leetcode - 2778 | Coder Infinity
Переглядів 983 місяці тому
Sum of Squares of Special Elements Leetcode - 2778 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - ...
Smallest Even Multiple Leetcode - 2413 | Coder Infinity
Переглядів 883 місяці тому
Smallest Even Multiple Leetcode - 2413 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ua-cam....
Add Two Integers Leetcode - 2235 | Coder infinity
Переглядів 7053 місяці тому
Add Two Integers Leetcode - 2235 | Coder infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ua-cam.com/vi...
Transpose Matrix Leetcode - 867 | Coder Infinity
Переглядів 893 місяці тому
Transpose Matrix Leetcode - 867 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ua-cam.com/vid...
Peak Index In a Mountain Array Leetcode - 852 | Coder Infinity
Переглядів 1064 місяці тому
Peak Index In a Mountain Array Leetcode - 852 | Coder Infinity Two Sum Leetcode -1 : ua-cam.com/video/3fB3qMrMXPY/v-deo.htmlsi=QvHlw4n-K3YBFsI- Reverse Integer Leetcode - 7 : ua-cam.com/video/TTP1wUg9Waw/v-deo.html Palindrome Number Leetcode - 9 : ua-cam.com/video/BYCwInfhc-s/v-deo.html Longest Common Prefix Leetcode - 14 : ua-cam.com/video/xB7jinvyfJk/v-deo.html Remove Element Leetcode - 27 : ...
Toeplitz Matrix Leetcode - 766 | Coder Infinity
Переглядів 324 місяці тому
Toeplitz Matrix Leetcode - 766 | Coder Infinity
Binary Search Leetcode - 704 | Coder Infinity
Переглядів 544 місяці тому
Binary Search Leetcode - 704 | Coder Infinity
Sum of Square Numbers Leetcode - 633 | Coder Infinity
Переглядів 824 місяці тому
Sum of Square Numbers Leetcode - 633 | Coder Infinity
Fibonacci Number Leetcode - 509 | Coder Infinity
Переглядів 524 місяці тому
Fibonacci Number Leetcode - 509 | Coder Infinity
Valid Perfect Square Leetcode - 367 | Coder Infinity
Переглядів 124 місяці тому
Valid Perfect Square Leetcode - 367 | Coder Infinity
Power of Four Leetcode - 342 | Coder Infinity
Переглядів 614 місяці тому
Power of Four Leetcode - 342 | Coder Infinity
Power of Three Leetcode - 326 | Coder Infinity
Переглядів 694 місяці тому
Power of Three Leetcode - 326 | Coder Infinity
Find the Duplicate Number Leetcode - 287 | Coder Infinity
Переглядів 614 місяці тому
Find the Duplicate Number Leetcode - 287 | Coder Infinity
Missing Number Leetcode - 268 | Coder Infinity
Переглядів 374 місяці тому
Missing Number Leetcode - 268 | Coder Infinity
Add Digits Leetcode - 258 | Coder Infinity
Переглядів 274 місяці тому
Add Digits Leetcode - 258 | Coder Infinity
Valid Anagram Leetcode - 242 | Coder Infinity
Переглядів 404 місяці тому
Valid Anagram Leetcode - 242 | Coder Infinity
Power of Two Leetcode - 231 | Coder Infinity
Переглядів 254 місяці тому
Power of Two Leetcode - 231 | Coder Infinity
Length of Last Word Leetcode - 58 | Coder Infinity
Переглядів 154 місяці тому
Length of Last Word Leetcode - 58 | Coder Infinity
Sqrt(x) Leetcode - 69 | Coder Infinity
Переглядів 354 місяці тому
Sqrt(x) Leetcode - 69 | Coder Infinity
Pow(x, n) Leetcode - 50 | Coder Infinity
Переглядів 274 місяці тому
Pow(x, n) Leetcode - 50 | Coder Infinity
Remove Element Leetcode - 27 | Coder Infinity
Переглядів 164 місяці тому
Remove Element Leetcode - 27 | Coder Infinity
class Solution { public: long long minimumTime(vector<int>& time, int totalTrips) { long long start=1; int mx=-1; for(int i=0;i<=time.size()-1;i++) { mx=max(mx,time[i]); } //type conversion long long end=(long long)mx * (long long)totalTrips; long long mid; long long ans; //start the binaary search while(start<=end) { mid=start+(end-start)/2; //we neeed 2 pointer long long trips=0; int n=time.size(); for(int i=0;i<n;i++) { trips+=mid/(long long)time[i]; } if (trips >= totalTrips) { ans = mid; end = mid - 1; } else { start = mid + 1; } } return ans; } }; there is my code
Daym dude thank you soo much i was not able to solve this question since i was not able to understand how the hell should i convert the int to long longgg daymmmmmmmmm i did type casting previously but i didnot worked but now it did thankkkssssssssssssssssssssssssssssssssss
thanks !!!! Now Im ready por an IT job
this music correctly potrays the people who are here to understand this problem as well
Yes now write this in machine optimized x86 assembly.
Nice
It is written to find a solution without changing the nums array Also using sort is nlogn complexity at best ,maybe eve n square. It is possible to find a solution in n complexity.
Hm... It is possible for n time complexity. Thanks