i want to write a c++ program to build min heap which gets above values from user. remember this program should not alloduplicate values to enter. it should discard duplicate values. anybody can help me to write this program, i would be grateful,
due date is 11 july
it is allowing duplicate values, the condition is that it should not allow duplicate values, if duplicate value is entered, it should discard duplicate value.
thanks
when user inputs the duplicate value, program should inform that you are putting duplicate values and program should discard the duplicate value immediately. please also clarify that is that a min heap program which you have written?
the required output should be as:
trying to insert value 2....
trying to insert value 3....
trying to insert value 6....
trying to insert value 2....
value 2 already exists, so discarding it...
trying to insert value 8....
trying to insert value 5....
trying to insert value 8....
value 8 already exists, so discarding it...
trying to insert value 9....
you have following values in heap
2 3 5 6 8 9
would you like to share you skype ID and email please?
sorry but noone is going to write code for you, you should do that yourself I just wrote little example which may help you to write your own.
There is no any difficulty, just think and do it step by step.
Ibrar bahe apni assignment khud bnaen thori bohat help her koi kar deta he per pura code koi ni likh k deta main ne sara code likh liya he assignment ka bus thora sa reh gya he apna vu id dy do main send kar dunga or agar ap mera group join karna chaho to join kar sakty ho https://www.facebook.com/groups/VUprogrammers/