In the mechanical town of Tempora, everything operates on clockwork and precise timing. At the heart of the town is the Grand Clock Tower, responsible for keeping time for all the town’s activities. However, over the years, some smaller clocks in the town have started to drift away from the accurate time.
Your task is to create a system that checks all the clocks in the town and synchronizes them with the Grand Clock Tower. You’ll be given a list of times from various clocks around the town, and you must determine how many minutes each clock is ahead or behind the Grand Clock Tower’s time.
tempora
and add a file named app.js
.tempora
and add a file named app.py
.tempora
and run dotnet new console
.See if you can use Copilot to find out the complexity (BigO notation) of the code.
Open the GitHub Copilot Chat view in the sidebar if it’s not already open. Make sure your solution file is still open as well.
Ask Copilot Chat what the complexity of the code is.
Ask Copilot Chat to make the code more efficient.
Ask for the complexity again - is it better?
Highlight all of the code with Ctrl/Cmd+A.
Press Ctrl/Cmd+I to open the inline chat.
Type “/doc”
Ask Copilot Chat to document the function.
Open GitHub Copilot Chat in the sidebar.
Type “/simplify” and press Enter. You can also add any text you want after the “/simplify” to give Copilot more instructions.
What did Copilot Chat suggest you do to make it simpler?
Copilot Chat can help with that too! Just copy the error message and paste it into Chat. Often that’s all Copilot needs to resolve your issue.