DC's DSA-CRACKER #2 | Array | Maxima and Minima in Array

Array 

This is a part of the 450 DSA question set to check the Excel sheet link to see the Links to GFG, Questions, Explanation/Solving Video, or other Blog for the Question:

https://drive.google.com/file/d/1L3EOLDMs-Fx2XoKclkCg1OVymDGh6psP/view?usp=sharing

Question  :

Maximum and Minimum Element in an Array

Write a Function that finds out the maximum and minimum element inside an array via the minimum comparisons possible and in the most minimal Space and Time Complexity.

Explanation Video




CODE
Tip: Check the code from the GITHUB Repo to Download the Code of all Existing Questions Solved at Once


Python 

 

Credit (for the Collection of Questions)
The Excel sheet is made by Mr.Love Babbar check him out on YT too
(After Subscribing to my channel too First ✌)

Donation Link : 

If You want to Donate for the effort of making these Solutions out for free and not making a course/Selling it on websites etc please consider it!

Donate Here

Want to Contribute?
Add Your GitHub Repo with the solution in other Programming Languages (C, CPP, Java, etc....)


Comments

Popular posts from this blog

How to NOT write UGLY CODE ? | PEP-8 | Python Enhancement Proposals | VS-Code Plugins | autopep8 | Prettier | Preffered Settings

DC's DSA-CRACKER #3 | Array | Kth Maxima and Minima in an Array

DC's DSA-CRACKER #1 | Array | REVERSE THE ARRAY