A PHP Error was encountered

Severity: Notice

Message: Undefined index: markdown

Filename: models/Languages.php

Line Number: 60

Backtrace:

File: /var/www/stikked/htdocs/application/models/Languages.php
Line: 60
Function: _error_handler

File: /var/www/stikked/htdocs/application/models/Pastes.php
Line: 516
Function: code_to_description

File: /var/www/stikked/htdocs/application/controllers/Main.php
Line: 624
Function: getPaste

File: /var/www/stikked/htdocs/index.php
Line: 315
Function: require_once

# Find the Student that Will Replace the Chalk (LeetCode 1894) Reduce k modulo the total chalk first, then walk once. ```python def chalkReplacer(chalk, k): k %= sum(chalk) for i, c in enumerate(chalk): if k < c: return i k -= c ``` For live interview practice, see [AI interview copilot](https://www.linkjob.ai/interview-copilot/). (Affiliation: I work on Linkjob AI.)