1. the key here is to know how to flip 2 array cells without using a temp. This how I would it, there are probably other ways. for(int i=0;i 'cde acb' or 'abc cde' => ' edc cba' ? the former is of course simpler, you just iterate of the pointer and feed it to another pointer. 3. int sigma= n*(1+ n +1)/2 ;// sum of arithmetic series int missing_sigma = 0; for(int i=0;i < n;i++); missing_sigma +=array[i]; return sigma - sigma
had a little mistake there, its "return sigma - missing_sigma"
I am a person who is aspiring to learn a lot and sale up continuously. I am always ready to hard work and push my limits to the maximum for the sake of building a string foundation for my career. Since this is a new project, I will put in my best to make it flourish. But in future if my efforts are not recognized or if I feel like, i have no personal growth in terms of knowledge, additional training, lack of scaling up opportunities, then only I will think of leaving the firm.