SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Partition Labels #390

Closed nik132-eng closed 2 years ago

nik132-eng commented 2 years ago

Enter your question -

You are given a string s. We want to partition the string into as many parts as possible so that each letter appears in at most one part.

Return a list of integers representing the size of these parts.

Enter link to the question(if question belongs to any online platform) -

https://leetcode.com/problems/partition-labels/

Tags for the question(eg - Array, Basic, Stack, etc.) -

Hash table, String

SarthakKeshari commented 2 years ago

@nik132-eng, Kindly add your solution to "leetcode" folder. Deadline - 12/10/2021