TIP102 Unit1 Welcome - codepath/compsci_guides GitHub Wiki
"Unit 1 Session 1 Standard (Click for link to problem statements)
Problem Highlights
- 💡 Difficulty: Easy
- ⏰ Time to complete: 1 min
- 🛠️ Topics: Functions, Strings
1: U-nderstand
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.
2: M-atch
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.
3: P-lan
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!".
⚠️ Common Mistakes
- Forgetting to include the print statement.
- Incorrectly formatting the string (ensure it matches exactly).