-
Notifications
You must be signed in to change notification settings - Fork 243
TIP102 Unit1 Welcome
kyra-ptn edited this page Aug 25, 2024
·
3 revisions
"Unit 1 Session 1 Standard (Click for link to problem statements)
- 💡 Difficulty: Easy
- ⏰ Time to complete: 1 min
- 🛠️ Topics: Functions, Strings
Understand what the interviewer is asking for by using test cases and questions about the problem.
- Established a set (2-3) of test cases to verify their own solution later.
- Established a set (1-2) of edge cases to verify their solution handles complexities.
- Have fully understood the problem and have no clarifying questions.
- Have you verified any Time/Space Constraints for this problem?
- The function welcome() should print the specific greeting message.
- There are no return values or inputs involved.
HAPPY CASE
Call welcome()
Expected Output: Welcome to The Hundred Acre Wood!
EDGE CASE
There are no edge cases for this problem since it only involves a fixed print statement.
Match what this problem looks like to known categories of problems, e.g. Linked List or Dynamic Programming, and strategies or patterns in those categories.
This problem falls under:
Basic Function Definition and String Manipulation.
Plan the solution with appropriate visualizations and pseudocode.
General Idea: Define a function that prints a specific greeting message.
Copy code
1. Define the function `welcome()`.
2. Use the `print()` function to display the string "Welcome to The Hundred Acre Wood!".
- Forgetting to include the print statement.
- Incorrectly formatting the string (ensure it matches exactly).