Class PartitionLabels

java.lang.Object
org.drip.sample.algo.PartitionLabels

public class PartitionLabels
extends java.lang.Object
PartitionLabels partitions a string of given of lower-case English letters into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing the size of these parts.



Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    PartitionLabels()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] argumentArray)
    Entry Point

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PartitionLabels

      public PartitionLabels()
  • Method Details

    • main

      public static final void main​(java.lang.String[] argumentArray) throws java.lang.Exception
      Entry Point
      Parameters:
      argumentArray - Command Line Argument Array
      Throws:
      java.lang.Exception - Thrown on Error/Exception Situation