MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / Less

Method Less

tasks/49.go:27–29  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

25type sortRunes []rune
26
27func (s sortRunes) Less(i, j int) bool {
28 return s[i] < s[j]
29}
30
31func (s sortRunes) Swap(i, j int) {
32 s[i], s[j] = s[j], s[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected