No video

L7. Count Prime in a range L-R | Maths Playlist

  Рет қаралды 13,173

take U forward

take U forward

Күн бұрын

Notes/Codes/Problem links under day 8 of A2Z DSA Course: takeuforward.o...
Entire playlist: • Maths Playlist | Langu...
Follow us on our other social media handles: linktr.ee/take...

Пікірлер: 16
@aniketgupta8064
@aniketgupta8064 5 ай бұрын
hey striver, a request. As you upload videos, kindly also make the required updates in the A to Z sheet as well so that we wont have to find them out on YT.
@user-mx6et3qm3i
@user-mx6et3qm3i 5 ай бұрын
can you please provide the link of the question?
@sachinchoudhary4142
@sachinchoudhary4142 4 ай бұрын
Ya please anyone provide the link
@adarshgupta1972
@adarshgupta1972 3 ай бұрын
@@sachinchoudhary4142 did you get it
@abhijeetbasfore6816
@abhijeetbasfore6816 4 ай бұрын
Great explanation.
@tonylee1868
@tonylee1868 5 ай бұрын
great! love your work ❤❤❤❤ Take rest bro and Understood 🙂🙂
@trailblazer555
@trailblazer555 2 ай бұрын
Great Bro; Understood well;
@hritikminmuley1397
@hritikminmuley1397 5 ай бұрын
Hey Striver, can you please provide the respective code in c++/java.
@user-lz1qb9ek4j
@user-lz1qb9ek4j Ай бұрын
class Solution { public: int count(int n) { vector prime(n, 1); int count = 0; for(int i = 2; i * i < n; i++) { if(prime[i] == 1) { for(int j = i * i; j < n; j += i) { prime[j] = 0; } } } for(int i = 2; i < n; i++) { if(prime[i] == 1) { count++; } } return count; } bool isPrime(int n) { if (n
@drishtirai864
@drishtirai864 5 ай бұрын
Understood :))
@AkOp-bf9vm
@AkOp-bf9vm 3 ай бұрын
notes?
@HimanshuKumar-sg6hv
@HimanshuKumar-sg6hv 3 ай бұрын
can anyone explain me what is l = queries[i][0] and r = queries[i][1]
@vipuljamod4119
@vipuljamod4119 2 ай бұрын
Queries store the list. If Queries=3, then three range given.., So find primes for every range..., To access l and r of first query, l = Queries [i][0] r = Queries [i][1] Means if i=0 then it acces 0th l & r. If i=1 then it access 1st L & R And so on...,
@techmatein
@techmatein Ай бұрын
Here queries can be seen as an array of array where the array the queries stores just have 2 indexes first for l(left) and r(right) So the queries stores the l and r for each query
@SaiKumar-mn1ee
@SaiKumar-mn1ee 5 ай бұрын
VIEDO ON OA???
@Ayushsharma-qc7qx
@Ayushsharma-qc7qx 2 ай бұрын
Dimag ka bosda ho gaya bhai
L6. Sieve of Eratosthenes | Maths Playlist
18:27
take U forward
Рет қаралды 43 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 32 МЛН
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20
English or Spanish 🤣
00:16
GL Show
Рет қаралды 15 МЛН
The FASTEST way to PASS SNACKS! #shorts #mingweirocks
00:36
mingweirocks
Рет қаралды 12 МЛН
I LEFT GOOGLE WARSAW
9:14
Striver
Рет қаралды 228 М.
MAGNUS CARLSEN DEFEATS HANS NIEMANN!!!!!!
31:51
GothamChess
Рет қаралды 100 М.
L4. Jump Game - I | Greedy Algorithm Playlist
10:53
take U forward
Рет қаралды 36 М.
L4. Print all prime factors of a Number | Maths Playlist
18:53
take U forward
Рет қаралды 36 М.
L11. Valid Parenthesis String | Multiple Approaches
26:09
take U forward
Рет қаралды 28 М.
USA Nice Olympiad Exponential Equation | Solve for X
6:38
Learncommunolizer
Рет қаралды 11 М.
L5. Power Exponentiation | Maths Playlist
12:39
take U forward
Рет қаралды 24 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 32 МЛН