摘要: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o 阅读全文
posted @ 2019-05-04 16:47 GoodRnne 阅读(236) 评论(0) 推荐(0)
摘要: 在Go语言中没有了class 类关键字,但是这并不代表Go语言不能使用面向对象编程,在Go语言中使用了struct关键和interface 关键字来定义对象和方法接口。具体如下: 面向对象 Go中使用struct来定义类,假如我们需要定义一个person类,其中包含姓名、年龄等信息。我们可以使用st 阅读全文
posted @ 2019-05-04 13:30 GoodRnne 阅读(149) 评论(0) 推荐(0)