Question: Your challenge is to take an array of strings and output the longest string in the array. So for

```
["tiny", "small", "bigger", "biggest"]

```

the output would be `biggest`.

If two elements of the array have the same length, you should choose the one that appears first in the array. That means if the array looks like this:

```
["one", "two", "no"]

```

the output is `one`, but if the array looked like this:

```
["two", "one", "no"]

```

the output is `two`.

---

As this is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), the shortest code in bytes wins.

Answer: 
[dc](https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html), 39 38 36 bytes
======================================================================================

```
0sl[slssdd]sG[dZdll!>Gooz0<M]dsMxlsp

```

[Try it online!](https://tio.run/##Hcm7DkBAEEbhZ/EG9EJHFNugMpmGcdlkYsW/Qrz8uhQnX3FkCHmIoQQFRBglSSeqUVY6d8epYYG5FFsI5BcLpi9168zUH56pqOqmfUl@Tqv6jpFpsjs8Pw "dc – Try It Online")

Edit: -1 byte, filling up empty space by 'd' instead

Edit: -2 bytes, thanks [@brhfl](https://codegolf.stackexchange.com/users/58230/brhfl) for suggestion!
Common Lisp, 32 bytes
=====================

```
(elt(sort(read)'> :key'length)0)

```

[Try it online!](https://tio.run/##NcYxDoAgDADAr5AutJuzg39BbLCxIoEuvL66ON1lldEcW5eaHVkNx9MNO6eD4hbWi2dUrsVOWsjJEUzqhADjTqqfu5TC/c8woBc)