摘要:
Question: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list. Answer:public ... 阅读全文
摘要:
题目 给定一个单链表的头结点,实现一个调整单链表的函数,使得每K个节点之间逆序,如果最后不够K个节点一组,则不调整最后几个节点。 解答 使用栈结构 import java.util.Stack; public class Test{ static class Node{ public int val 阅读全文