DSA-in-December

โœจ ๐——๐—ฎ๐˜† ๐Ÿญ: ๐—ง๐—ถ๐—บ๐—ฒ ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ฝ๐—ฎ๐—ฐ๐—ฒ ๐—–๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜…๐—ถ๐˜๐˜† โœจ

// Good Morning everyone ๐ŸŒž, we are starting this activity with the vision of improvement and building consistency in students, today is the first day of DSA in December, I hope you are excited to get started with it! ๐Ÿš€

๐Ÿ“Œ An important question while programming is: How efficient is an algorithm or piece of code? Efficiency covers lots of resources, including: โ€ข CPU (time) usage โ€ข memory usage โ€ข disk usage โ€ข network usage All are important but we are mostly concerned about CPU time. Be careful to differentiate between:

  1. Performance: how much time/memory/disk/etc. is actually used when a program is run. This depends on the machine, compiler, etc. as well as the code we write.
  2. Complexity: how do the resource requirements of a program or algorithm scale, i.e. what happens as the size of the problem being solved by the code gets larger. Complexity affects performance but not vice-versa. The time required by a function/method is proportional to the number of โ€œbasic operationsโ€ that it performs. Here are some examples of basic operations: โ€ข one arithmetic operation (e.g. a+b / a*b) โ€ข one assignment (e.g. int x = 5) โ€ข one condition/test (e.g. x == 0) โ€ข one input read (e.g. reading a variable from console) โ€ข one output write (e.g. writing a variable on console)

โœ๏ธ ๐—™๐—ผ๐—ฟ ๐—ฏ๐—ฒ๐˜๐˜๐—ฒ๐—ฟ ๐˜‚๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ๐—ถ๐—ป๐—ด ๐—ฟ๐—ฒ๐—ณ๐—ฒ๐—ฟ ๐—ณ๐—ผ๐—น๐—น๐—ผ๐˜„๐—ถ๐—ป๐—ด ๐—ฎ๐—ฟ๐˜๐—ถ๐—ฐ๐—น๐—ฒ๐˜€ ;

  1. https://medium.com/@manishsundriyal/overview-time-space-complexity-f973513b701e#:~:text=According%20to%20Wikipedia%2C,grows%2C%20if%20the%20input%20increases
  2. https://www.geeksforgeeks.org/time-complexity-and-space-complexity/
  3. https://docs.google.com/document/d/1RCv8SeR4Zlnd13lHPzgrKV-4tzijRBjzGhhsNdGMeEk/edit?usp=sharing
  4. https://towardsdatascience.com/space-and-time-complexity-in-computer-algorithms-a7fffe9e4683

๐Ÿ“ฝ๏ธ ๐—ง๐˜‚๐˜๐—ผ๐—ฟ๐—ถ๐—ฎ๐—น ๐—Ÿ๐—ถ๐—ป๐—ธ๐˜€;

  1. https://youtu.be/rq_rwnveh8s
  2. https://youtu.be/mV3wrLBbuuE
  3. https://youtu.be/QovOdd80A4s
  4. https://youtu.be/bQssdSrSGNE

๐Ÿ‘จโ€๐Ÿ’ป ๐—ค๐˜‚๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป๐—ถ๐—ป๐—ด ๐—ฅ๐—ผ๐˜‚๐—ป๐—ฑ :

โ˜… ๐Ÿฑ ๐—ฏ๐—ฎ๐˜€๐—ถ๐—ฐ ๐—ฝ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ด ๐—พ๐˜‚๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป โ˜…

  1. https://practice.geeksforgeeks.org/problems/power-of-numbers-1587115620/1?utm_source=gfg&utm_medium=article_practice_tab&utm_campaign=article_practice_tab
  2. https://www.hackerrank.com/challenges/what-type-of-triangle/problem
  3. https://practice.geeksforgeeks.org/problems/nth-fibonacci-number1335/1?utm_source=gfg&utm_medium=article_practice_tab&utm_campaign=article_practice_tab
  4. https://www.hackerrank.com/challenges/printing-pattern-2/problem
  5. https://practice.geeksforgeeks.org/problems/print-the-pattern-set-1/1