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?