i hv a doubt if der is nt declarasn of pointr variable den * is immaterial bt still &(a+1) wud wrk
On Sun, Jul 31, 2011 at 1:36 AM, aditi garg <aditi.garg.6...@gmail.com>wrote: > @neeraj in the end when we traverse it we wud have to delete all its > occurences rite? > > > On Sun, Jul 31, 2011 at 1:33 AM, Neeraj Gupta > <neeraj.gupta...@gmail.com>wrote: > >> Create a balance BST. >> Maintain counter. Whenever You hit duplicate increase the counter while >> inserting. >> O(nlogn) for creating it and O(N) space. >> Now while traverse the array. >> If you find the element, then print it acco the counter value. After >> printing delete it. >> if not found continue traversing. >> >> >> >> On Sun, Jul 31, 2011 at 1:28 AM, gaurav gupta <grvgupta...@gmail.com>wrote: >> >>> &a+1 takes to the last element of the array bt is the logic behind dis >>> >>> On Sun, Jul 31, 2011 at 1:25 AM, Kamakshii Aggarwal < >>> kamakshi...@gmail.com> wrote: >>> >>>> &a+1 will point to the next array(i.e it will skip the whole array) >>>> where as &(a+1)will print address of element 2. >>>> >>>> On Sun, Jul 31, 2011 at 1:21 AM, Sanchit Manchanda < >>>> sanchit...@gmail.com> wrote: >>>> >>>>> Sorry my bad. I was wrong. >>>>> >>>>> On Sun, Jul 31, 2011 at 1:15 AM, gaurav gupta >>>>> <grvgupta...@gmail.com>wrote: >>>>> >>>>>> main() >>>>>> { >>>>>> int a[5]={1,2,3,4,5}; >>>>>> printf("%d%d",&a+1,&(a+1)); >>>>>> } >>>>>> plz explain me the difference in ans. >>>>>> thanx...... >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Algorithm Geeks" group. >>>>>> To post to this group, send email to algogeeks@googlegroups.com. >>>>>> To unsubscribe from this group, send email to >>>>>> algogeeks+unsubscr...@googlegroups.com. >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/algogeeks?hl=en. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Sanchit Manchanda >>>>> COE(3rd year) , NSIT >>>>> http://iblogmythots.wordpress.com/ >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Algorithm Geeks" group. >>>>> To post to this group, send email to algogeeks@googlegroups.com. >>>>> To unsubscribe from this group, send email to >>>>> algogeeks+unsubscr...@googlegroups.com. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/algogeeks?hl=en. >>>>> >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Kamakshi >>>> kamakshi...@gmail.com >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Algorithm Geeks" group. >>>> To post to this group, send email to algogeeks@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> algogeeks+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to algogeeks@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Aditi Garg > Undergraduate Student > Electronics & Communication Divison > NETAJI SUBHAS INSTITUTE OF TECHNOLOGY > Sector 3, Dwarka > New Delhi > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.