Question No 1:
An e-commerce website wishes to analyze. the per-day sales of their products. The products are tagged from a to z and A to Z. The daily sales are merged into a sequence of the tags of the products sold in the day. The company wishes to identify the products that are purchased only one time in the day.
Write an algorithm to find the count of the product tags that occur only once in the sales sequence.
Input The input consists of a string saleSequence representing sales of the day.
|