Longest String
Lesson 9 of 24 in Coddy's Golang Challenges - Level 1 course.
Challenge
EasyWe have an array like this: ["abc", "coddy", "golang", "java"]. Write a function that print the longest string in the array along with the number of characters in that string. For example, in this array, the expected output should be golang 6.
Try it yourself
import "fmt"
func longestString() {
}All lessons in Golang Challenges - Level 1
1Introduction
Introduction3Play with Slices & Arrays
Longest StringDouble Even NumbersSum Average Minimum and MaxSumEven & Odd NumbersSlice to Map Non Repeated Indices