Re: [algogeeks]

2011-03-27 Thread kracekumar ramaraju
you can imagine above code like block variables int a; { int a; while printing a here gives different values } Use GCC,which adheres to POSIX standards. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send emai

Re: [algogeeks] Re: Regular exp in Python

2011-03-27 Thread kracekumar ramaraju
You can implement above in dictionary, a="000aaaaa" b={} for x in a: if b.has_key(x): t=str(b[x]) t=t+x b[x]=t else: b[x]=str(x) print b for x in b: if 48 <= ord(x) <=57: print b[x] -- You received this message because you are su

Re: [algogeeks] Re: Regular exp in Python

2011-03-27 Thread kracekumar ramaraju
re.findall(".{3}" ,"aaabbbcccdddeeefffggg") -- 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

Re: [algogeeks] Link list Problem

2011-03-16 Thread kracekumar ramaraju
@harish:Then that can be accepted. . . -- 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

Re: [algogeeks] Re: what to learn python or perl

2011-03-16 Thread kracekumar ramaraju
@.bashrc=>y do you recommend c# ?python can do what c# in better way . . .c# can be useful when you are programming windows(sad OS).Python can do better than c#. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send emai

Re: [algogeeks] Link list Problem

2011-03-16 Thread kracekumar ramaraju
@Harish:but you are still having the address occupied by 3.deleting means you have to free the space occupied by node. . . -- 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 uns

Re: [algogeeks] Link list Problem

2011-03-16 Thread kracekumar ramaraju
@harish:1->2->3->4->5:if you want to delete 3 and know only 3 's address without previous one you cannot delete . . . -- 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 unsubscr

Re: [algogeeks] what to learn python or perl

2011-03-15 Thread kracekumar ramaraju
Hello Python vs Perl been battle for more than 20 years.Perl is been around 23+ years(not sure,people say 25 years pls check) and python for 21 years. Python would be my choice 1.Python achieves code readability. 2.Python can do what perl can do. more on this fight you can find here http://in

Re: [algogeeks] Python tutorials required.

2011-03-15 Thread kracekumar ramaraju
Resource to learn python http://www.slideshare.net/kracekumar/learn-python-7173668 http://www.slideshare.net/kracekumar/workshop-programs -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googleg

Re: [algogeeks] Link list Problem

2011-03-15 Thread kracekumar ramaraju
1->2->3->4->5 Start from any position ,have two pointers ,let that be a and b.Let a follow b,so that when b reaches right value ,a will be one node lacking,once b node is to be deleted,get the address of b node pointing and change the address of a pointing to the address b pointing to. 1->2->3