Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
321 stars 474 forks source link

Three way partitioning #344

Open Drishty06 opened 3 years ago

Drishty06 commented 3 years ago

Problem link: https://practice.geeksforgeeks.org/problems/three-way-partitioning/1# Problem:Given an array of size n and a range [a, b]. The task is to partition the array around the range such that array is divided into three parts. 1) All elements smaller than a come first. 2) All elements in range a to b come next. 3) All elements greater than b appear in the end. The individual elements of three sets can appear in any order. You are required to return the modified array. Platform: gfg Language: C++

Drishty06 commented 3 years ago

kindly assign this to me

suy1968 commented 3 years ago

Please Assign me

I am using python3

Drishty06 commented 3 years ago

I have generated PR for the same. Kindly review it.