ex10

command
v0.0.0-...-40c8e05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 2 Imported by: 0

README

Exercise 7.10 (P191)

The sort.Interface type can be adapted to other use. Write a function IsPalidrome(s sort.Interface) bool that reports whether the sequence s is a palindrome, in other words, reversig the sequence would not change it. Assume that the elements at indices i and j are equal if !s.Less(i, j) && !s.Less(j, i)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL