Coding Club ISMP 2 nov free hai mat download karo.pptx

GoluGllu 4 views 26 slides Jun 12, 2024
Slide 1
Slide 1 of 26
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26

About This Presentation

These are coding club ppt garansh ethopidia


Slide Content

Coding Club ISMP

Welcomes Freshers 2022! Coding Club IIT Ropar Mentor: Harpreet Singh & Prashant Mittal Representative: Anant Prakash Singh ‹#› 2 nd November, 2022

‹#› What is Coding…?

What is Coding…? Coding is a method or way to interact with computers using different languages like C, C++, Java, Python and many more.

Optimization of Logic Code it Logic building What is Coding…?

‹#› Some Programming Languages

PRime Numbers ‹#› Number that is divisible only by 1 and the number itself. Whether 17 is prime a number or not? What about 1009? What about 71353? It’s easy right!!

‹#› What about 2 67 - 1 = 147573952589676412927…??

‹#› Seems Impossible ?!!

‹#› But it’s not impossible if you know how to code. Let’s see how….!!!!

Story about 2 67 - 1 ? ‹#› Mersenne number Mersenne claimed that this number is prime in 17th-century But later in 20th-century, a mathematician in mathematics summit found 2 factors of this number 147573952589676412927 = 193707721 × 761838257287

‹#›

Who is the Defaulter..? ‹#›

‹#› Who is the Defaulter..? T T T T T T F F F F 1 2 3 4 5 6 7 8 9 10 T T T T T T F F F F 1 2 3 4 5 6 7 8 9 10 T T T T T T F F F F 1 2 3 4 5 6 7 8 9 10 T T T T T T F F F F 1 2 3 4 5 6 7 8 9 10 T T T T T T F F F F 1 2 3 4 5 6 7 8 9 10

Binary Search ‹#›

‹#›      MAKING PAIRS ACTIVITY

‹#›      MAKING PAIRS ACTIVITY 1 2 3 4 5 6 1 2 6 5 4 3

‹#›      MAKING PAIRS ACTIVITY How to generalize it..?

Difference Problem ‹#› There are 10 persons sitting in a row. Their chairs are labelled from 1 to 10. Their ages are given to you. Count the number of pairs such that difference of their ages is equal to the difference in their chair number.

Sum Problem ‹#› You are given a list of numbers arranged in increasing order. Find Two Numbers such that their sum is 40 1 5 8 10 13 16 27 33 45 60

TUMHE KYA MILEGA? ‹#›

TUMHE KYA MILEGA? ‹#›

‹#›

Thanks! ‹#› You can contact us at: [email protected] coding_iitrpr Coding Club, IIT Ropar

Land Division Problem ‹#› There is a strip of Land of length L. You want to divide them among 3 persons by making 2 vertical cuts. One person can overthrow the other 2 if his piece of l and has more area than the other 2 combined. You have made 2 random horizontal cuts. What is the probability that after making these random cuts NO overthrowing happens?