# Is it ok to use built-in methods when learning DSA?

**URL:** <https://forum.kirupa.com/t/is-it-ok-to-use-built-in-methods-when-learning-dsa/667839>\
**Category:** Uncategorized\
**Created:** [June 28, 2024, 2:11am UTC](https://forum.kirupa.com/t/is-it-ok-to-use-built-in-methods-when-learning-dsa/667839 "2024-06-28T02:11:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brayan0404](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/brayan0404/32/26446_2.png) [@brayan0404](https://forum.kirupa.com/u/brayan0404)\
**Post date:** [June 28, 2024, 2:11am UTC](https://forum.kirupa.com/t/is-it-ok-to-use-built-in-methods-when-learning-dsa/667839/1 "2024-06-28T02:11:12Z")

</div>

Hope you´re doing great.  
I’m learning DSA and I’m wondering if it’s acceptable to use built-in methods or if it’s better to write everything from scratch. Sometimes I feel bad for using built-in methods because I feel like I’m not learning by doing it that way. What do you think about this?

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [June 28, 2024, 3:18am UTC](https://forum.kirupa.com/t/is-it-ok-to-use-built-in-methods-when-learning-dsa/667839/2 "2024-06-28T03:18:05Z")

</div>

Hi @brayan0404 - welcome to the forums!

Unless you are about to have an exam or interview where you will be asked to implement an algorithm from scratch, using built-in methods is totally fine.

Often, built-in methods will be faster since they will likely be optimized at a lower level than the code you and I would write.

Also, for 99.99% of all cases, even horribly slow algorithms will be fine for most use cases. Our CPUs are fast, and a n-squared running time algorithm when dealing with even 5000 items will not be noticeable.

Does this help?

😀

---

<div class="post-metadata">

**Author:** ![brayan0404](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/brayan0404/32/26446_2.png) [@brayan0404](https://forum.kirupa.com/u/brayan0404)\
**Post date:** [June 28, 2024, 3:42pm UTC](https://forum.kirupa.com/t/is-it-ok-to-use-built-in-methods-when-learning-dsa/667839/3 "2024-06-28T15:42:57Z")

</div>

Yes, this helps a lot! I appreciate your response. Beyond exams or interviews, don’t you think it would be cool and useful to learn how to create those algorithms from scratch yourself, for the knowledge and skills you could gain? Thank you again for your insight!

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [June 28, 2024, 6:56pm UTC](https://forum.kirupa.com/t/is-it-ok-to-use-built-in-methods-when-learning-dsa/667839/4 "2024-06-28T18:56:46Z")

</div>

Absolutely. Knowing more about the internals of how things work is always a good thing. Having that curiosity to learn about something that may not have an immediate “payoff” is one of those signals that indicates someone really loves what they are doing. Plus, the knowledge you gain from implementing an algorithm may indirectly benefit other problems you may face in the future.

Now, should you prioritize learning how to write your own algorithms over say, something like, learning system design for a variety of application types, that’s debatable 🙂

---

<div class="post-metadata">

**Author:** ![brayan0404](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/brayan0404/32/26446_2.png) [@brayan0404](https://forum.kirupa.com/u/brayan0404)\
**Post date:** [June 29, 2024, 2:25am UTC](https://forum.kirupa.com/t/is-it-ok-to-use-built-in-methods-when-learning-dsa/667839/5 "2024-06-29T02:25:51Z")

</div>

Thanks @kirupa, appreciate your response!
