Video upload date:  · Duration: PT1H46M27S  · Language: EN

You have a recursive Python function github video

copilot-gh-300 video for you have a recursive Python function calculate_fibonacci(n) that correctly calculates the Fibonacci sequence but has poor performance

This is a dedicated watch page for a single video.

Full Certification Question

You have a recursive Python function calculate_fibonacci(n) that correctly calculates the Fibonacci sequence but has poor performance for large inputs. You want to use GitHub Copilot to identify performance issues and suggest improvements. def calculate_fibonacci ( n ): if n <= 1 : return n return calculate_fibonacci ( n - 1 ) + calculate_fibonacci ( n - 2 ) How can GitHub Copilot help optimize this function and generate better tests?