PEDAC Flashcards
Step 1 of Interview Questions
Rephrase the problem in my own words
Step 2 of Interview Questions
Input and output types
Step 3 of Interview Questions
Examples and Edge Cases
Step 4 of Interview Questions
Data Structure
Step 5 of Interview Questions
https://www.freecodecamp.org/news/how-to-approach-any-algorithm-interview-without-panicking-b6d7ae5c050/
Pseudocode
Step 6 of Interview Question
Code
1st step of PEDAC
1. Understand the problem: digest the problem and gain a holistic and well-rounded understanding of what the entire problem is asking. 2. Identify the inputs and outputs. 3. Implicit requirements 4. Clarifying questions
Problem Domain
A problem domain is the area of expertise or application that needs to be examined to solve a problem. It limits the scope of the problem.
Mental Model
A mental model is an explanation of someone’s thought process about how something works in the real world.
2nd step of PEDAC
Examples/Test Cases
3rd step of PEDAC
Data structure: with our test cases ready, the next thing is to choose the data structures we will use to convert the input to the output.
4th step of PEDAC
Algorithm