---
id: 66250fc0d711192eebfff0e9
title: "Dialogue 1: Solving Coding Challenges"
challengeType: 21
dashedName: dialogue-1-solving-coding-challenges
lang: en-US
---

# --description--

Watch the video to understand the context of the upcoming lessons.

# --assignment--

Watch the video

# --scene--

```json
{
  "setup": {
    "background": "company2-center.png",
    "characters": [
      {
        "character": "Sophie",
        "position": { "x": -25, "y": 0, "z": 1 }
      },
      {
        "character": "Brian",
        "position": { "x": 125, "y": 0, "z": 1 }
      }
    ],
    "audio": {
      "filename": "9.2-1.mp3",
      "startTime": 1
    },
    "alwaysShowDialogue": true
  },
  "commands": [
    {
      "character": "Sophie",
      "position": { "x": 25, "y": 0, "z": 1 },
      "startTime": 0
    },
    {
      "character": "Brian",
      "position": { "x": 70, "y": 0, "z": 1 },
      "startTime": 0.5
    },
    {
      "character": "Sophie",
      "startTime": 1,
      "finishTime": 3.38,
      "dialogue": {
        "text": "Hey, Brian. I'm working on this coding challenge",
        "align": "left"
      }
    },
    {
      "character": "Sophie",
      "startTime": 3.38,
      "finishTime": 5.96,
      "dialogue": {
        "text": "and I could use a fresh perspective. Mind taking a look?",
        "align": "left"
      }
    },
    {
      "character": "Brian",
      "startTime": 6.26,
      "finishTime": 9.1,
      "dialogue": {
        "text": "Of course. I'm happy to help. What seems to be the issue?",
        "align": "right"
      }
    },
    {
      "character": "Sophie",
      "startTime": 9.82,
      "finishTime": 13.48,
      "dialogue": {
        "text": "Well, I'm trying to optimize this function, but I feel like I'm missing something.",
        "align": "left"
      }
    },
    {
      "character": "Sophie",
      "startTime": 13.9,
      "finishTime": 16.28,
      "dialogue": {
        "text": "Have you ever tackled a similar optimization challenge?",
        "align": "left"
      }
    },
    {
      "character": "Brian",
      "startTime": 17.28,
      "finishTime": 19.64,
      "dialogue": {
        "text": "Absolutely. Optimization can be tricky.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 19.88,
      "finishTime": 22.84,
      "dialogue": {
        "text": "I'd suggest that you break down the function into smaller parts.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 23.24,
      "finishTime": 25.52,
      "dialogue": {
        "text": "It might make the optimization more manageable.",
        "align": "right"
      }
    },
    {
      "character": "Sophie",
      "startTime": 26.04,
      "finishTime": 27.8,
      "dialogue": {
        "text": "Good point. I'll try that.",
        "align": "left"
      }
    },
    {
      "character": "Sophie",
      "startTime": 27.8,
      "finishTime": 32.04,
      "dialogue": {
        "text": "Also, have you ever dealt with time complexity issues in a similar context?",
        "align": "left"
      }
    },
    {
      "character": "Brian",
      "startTime": 32.54,
      "finishTime": 36.26,
      "dialogue": {
        "text": "Yes, I have. If you analyze the loops and conditional statements,",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 36.42,
      "finishTime": 38.32,
      "dialogue": {
        "text": "it often shows areas for improvement.",
        "align": "right"
      }
    },
    {
      "character": "Sophie",
      "startTime": 38.8,
      "finishTime": 40.76,
      "dialogue": {
        "text": "Loops and conditionals... Thanks.",
        "align": "left"
      }
    },
    {
      "character": "Sophie",
      "startTime": 41.2,
      "finishTime": 44.62,
      "dialogue": {
        "text": "By the way, when you see a logic challenge, how do you usually approach it?",
        "align": "left"
      }
    },
    {
      "character": "Brian",
      "startTime": 45.24,
      "finishTime": 47.34,
      "dialogue": {
        "text": "Well, I break it down step by step.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 47.56,
      "finishTime": 51.02,
      "dialogue": {
        "text": "If I get stuck on a specific part, I ask for help from colleagues.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 51.84,
      "finishTime": 54.38,
      "dialogue": {
        "text": "Have you ever collaborated with someone to solve coding problems?",
        "align": "right"
      }
    },
    {
      "character": "Sophie",
      "startTime": 55.02,
      "finishTime": 57.7,
      "dialogue": {
        "text": "I haven't done that much, but it sounds like a great idea.",
        "align": "left"
      }
    },
    {
      "character": "Sophie",
      "startTime": 57.88,
      "finishTime": 58.9,
      "dialogue": {
        "text": "I'll keep that in mind.",
        "align": "left"
      }
    },
    {
      "character": "Sophie",
      "startTime": 59.36,
      "finishTime": 63.2,
      "dialogue": {
        "text": "Do you have any preferred resources for diving deep into optimization techniques?",
        "align": "left"
      }
    },
    {
      "character": "Brian",
      "startTime": 63.78,
      "finishTime": 66.82,
      "dialogue": {
        "text": "Definitely. There are some great articles and tutorials online.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 67.16,
      "finishTime": 68.66,
      "dialogue": {
        "text": "I can share a few links with you.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 68.98,
      "finishTime": 72.06,
      "dialogue": {
        "text": "Have you ever explored online resources for coding challenges?",
        "align": "right"
      }
    },
    {
      "character": "Sophie",
      "startTime": 72.74,
      "finishTime": 75.12,
      "dialogue": {
        "text": "Not extensively. I'd appreciate those links.",
        "align": "left"
      }
    },
    {
      "character": "Sophie",
      "startTime": 75.36,
      "finishTime": 77.28,
      "dialogue": {
        "text": "Thanks for your guidance. It's been really helpful.",
        "align": "left"
      }
    },
    {
      "character": "Brian",
      "startTime": 77.62,
      "finishTime": 78.9,
      "dialogue": {
        "text": "No problem. We're a team.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "startTime": 79.18,
      "finishTime": 81.22,
      "dialogue": {
        "text": "Supporting each other is what makes us stronger.",
        "align": "right"
      }
    },
    {
      "character": "Brian",
      "position": { "x": 125, "y": 0, "z": 1 },
      "startTime": 81.72
    },
    {
      "character": "Sophie",
      "position": { "x": -25, "y": 0, "z": 1 },
      "startTime": 82.22
    }
  ]
}
```
