[erlang-questions] How to enhance runtime and reduce memory usage

Mohamed Khalfella <>
Thu Dec 1 12:31:41 CET 2016


I am new to Erlang. I was solving one of the exercises in hackerrank.com
and I faced an issue where my solution is terminated because it takes long
to process the test case. Attached to this email the problem definition.
You can access my solution as below. My questions are:

How to pin point code that excessively eats memory?
How to pin point code that consumes CPU time?


Mohamed A. Khalfella
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161201/ea82be06/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: The Tree Of Life _ Functional Programming Question _ HackerRank.pdf
Type: application/pdf
Size: 370701 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161201/ea82be06/attachment-0001.pdf>

More information about the erlang-questions mailing list