Competitive Coding LIVE - Inclusion Exclusion + Bitmasking + Problem Solving

  Рет қаралды 16,576

Coding Blocks

Coding Blocks

Күн бұрын

Пікірлер: 22
@anshugarg2510
@anshugarg2510 5 жыл бұрын
epic video for basics
@CodingBlocksIndia
@CodingBlocksIndia 6 жыл бұрын
hack.codingblocks.com/contests/c/126/821
@ritikkaushik7131
@ritikkaushik7131 4 жыл бұрын
great video sir ...
@adilzamal3218
@adilzamal3218 5 жыл бұрын
The way you have mentioned to find the no of element looks wrong to me ..... for correct answer we have to divide the n by LCM of the two number........... for example if you want to find total number of element for number less than 13 which are divisible by 2 and 3 .... Then correct answer is 2 (6 and 12) but by using your way answer is 1 (12/(2*3))....
@ashutosh.sharma
@ashutosh.sharma 5 жыл бұрын
(12/(2*3)) = 2
@shivanshsrivastava9279
@shivanshsrivastava9279 5 жыл бұрын
In this problem we are dealing with only prime numbers, so LCM of numbers would be same as a*b*c*d....... But if you are dealing with general numbers then you need to find lcm of all numbers.
@musicfan1695
@musicfan1695 4 жыл бұрын
@@shivanshsrivastava9279 yes shivansh , you're right
@ritikkaushik7131
@ritikkaushik7131 4 жыл бұрын
bro we are asking either 2 or 3 not both
@harshsagar9570
@harshsagar9570 6 жыл бұрын
Amazing!
@CodingBlocksIndia
@CodingBlocksIndia 6 жыл бұрын
thanks harsh- prateek bhayia
@abhinavreddy5350
@abhinavreddy5350 4 жыл бұрын
Superb...
@kshitijagarwal3230
@kshitijagarwal3230 6 жыл бұрын
Can u please make a video on segmented sieve? Would be of great help!!!
@siddhartha166
@siddhartha166 4 жыл бұрын
ya please
@PiyushKumar-xv1ud
@PiyushKumar-xv1ud 4 жыл бұрын
What is the meaning of (long long denom = 1 long long ) in line 19 ??
@raghavagarwal5688
@raghavagarwal5688 4 жыл бұрын
by default a constant 1 written in code will be stored in memory as an int, so doing long long l= 1; will baically store an int 1 then upgrade it to long long and then store it in l. Doing it like this will make the computer store the 1 as long long from the got go. this is mainly useful to prevent overflows
@GateCSE280
@GateCSE280 6 жыл бұрын
Sir😎
@anirudh247
@anirudh247 6 жыл бұрын
Sir but the time complexity of the problem you have done is too much, is it possible to do the problem in a more efficient way?
@CodingBlocksIndia
@CodingBlocksIndia 6 жыл бұрын
The complexity here is exponential which satisfies the question contraints that N is less than 20.
@azharsofi2854
@azharsofi2854 3 жыл бұрын
What is the name of the teacher?
@ajr1791ze
@ajr1791ze 5 жыл бұрын
very low sound , use mic
Competitive Coding LIVE Premiere - Cube Free Number, Sanket bhaiya
20:50
Towers of Hanoi: A Complete Recursive Visualization
21:13
Reducible
Рет қаралды 515 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 579 М.
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1,1 МЛН
Dijkstra's Algorithm with Code[C++] - Prateek Narang | Coding Blocks
35:40
How To Think Like A Programmer
1:00:07
Coding Tech
Рет қаралды 2,1 МЛН
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,3 МЛН
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 863 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 240 М.
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 373 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 34 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН