# I need help with a problem

**URL:** <https://discourse.processing.org/t/i-need-help-with-a-problem/15687>\
**Category:** Coding Questions\
**Created:** [November 21, 2019, 12:20pm UTC](https://discourse.processing.org/t/i-need-help-with-a-problem/15687 "2019-11-21T12:20:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leyonad](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@Leyonad](https://discourse.processing.org/u/Leyonad)\
**Post date:** [November 21, 2019, 12:20pm UTC](https://discourse.processing.org/t/i-need-help-with-a-problem/15687/1 "2019-11-21T12:20:21Z")

</div>

Hello,  
Does anyone know how to solve this problem?

“Determine the letter with the largest gap. A gap is the number of letters that is different from the letter that is determined.”

If someone could help me, I would be very glad.

Greeting

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 21, 2019, 12:41pm UTC](https://discourse.processing.org/t/i-need-help-with-a-problem/15687/2 "2019-11-21T12:41:17Z")

</div>

Look at the ascii value

Using int(letter) iirc

Take the difference

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [November 24, 2019, 8:09pm UTC](https://discourse.processing.org/t/i-need-help-with-a-problem/15687/3 "2019-11-24T20:09:15Z")

</div>

You might find the documentation for `char` and `String.charAt()` helpful.

- [https://www.processing.org/reference/char.html](https://www.processing.org/reference/char.html)
- [https://www.processing.org/reference/String\_charAt\_.html](https://www.processing.org/reference/String_charAt_.html)
- [https://www.processing.org/reference/String\_.html](https://www.processing.org/reference/String_.html)

There are some additional overview concepts at the beginning of the Text Tutorial:

- [https://processing.org/tutorials/text/](https://processing.org/tutorials/text/)
