摘要: 使用setGravity设置Toast显示位置 setGravity(int gravity, int xOffset, int yOffset)三个参数分别表示(起点位置,水平向右位移,垂直向下位移) 第一个按钮的toast消息 第二个按钮的toast消息 阅读全文
posted @ 2018-10-27 20:08 杜王町上班族 阅读(477) 评论(0) 推荐(0)
摘要: Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both?反转链表。有两种方法 阅读全文
posted @ 2018-10-27 13:38 杜王町上班族 阅读(144) 评论(0) 推荐(0)
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head = [4,5,1,9], wh 阅读全文
posted @ 2018-10-27 10:49 杜王町上班族 阅读(128) 评论(0) 推荐(0)