Package lc.test

Class ToList<T extends java.lang.Comparable<? super T>>


  • public class ToList<T extends java.lang.Comparable<? super T>>
    extends java.lang.Object
    Convert the input string to a linked list.
    • Constructor Summary

      Constructors 
      Constructor Description
      ToList​(T[] input)
      Constructor: assign the input array for internal use.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      ListNode<T> singlyList()
      Convert the input string to a singly integer list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToList

        public ToList​(T[] input)
        Constructor: assign the input array for internal use.
        Parameters:
        input -
    • Method Detail

      • singlyList

        public ListNode<T> singlyList()
        Convert the input string to a singly integer list.
        Parameters:
        input - the input string.
        Returns:
        the head of the list.
      • main

        public static void main​(java.lang.String[] args)