Home > BC, Computers, Fun, Google, Hacking, Life, Success > Almighty linked lists

Almighty linked lists

October 18th, 2008

As the time for placements has finally come, I am trying to train myself for the lame questions that companies usually ask instead of asking things related to the real talent.

I am a bit (a bit????) paranoid about pointers, linked lists and stuff that involves pointers. I couldn’t really keep up with the data structures because I learnt to use this WONDERFUL language called python. I was not a bond in C/C++ but my skill level was good enough to write basic codes. Though I didn’t submit all my programming assignments, I used to write C/C++ codes for fun especially during third and fourth semester when I was awesomely obsessed with Object Oriented Programming and classes in c++. But I never used pointers even in that period. After fourth sem, I completely switched to python quitting c/c++ totally. I have been doing fun things like my Google Summer of Code, IntelligentMirror, Youtube Caching and other private stuff in python since almost one and a half year. Python is a real handy language when you want developĀ  projects quickly.

Anyway, I thought I’ll give c/pointers another shot. I picked up EssentialC, Pointers And Memory and LinkedListBasics from Stanford CS Library. Read first two of them from start to end without missing a single word. Read 5-6 pages from Linked List Basics and then thought of coding a very basic linked list with few operations. But unfortunately couldn’t do so even after fighting for one hour. Fifty percent of the time, i was fixing my code because I wrote the damn thing in python style formatting, forgot to declare variables before using them and blah blah… In the meantime Pankaj pinged for the BC session. When I told him the same thing, he said he implemented linked list few days back using arrays … OMG!! pretty easy. huh!! After we returned from canteen, I gave it one more shot. BINGO!!! I did it this time :) I finally wrote some code in C for linked list which finally worked :D

Loving pointers a bit and looking for exploring more.

Share and Enjoy :D
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • Technorati
  • Twitter

Kulbir Saini BC, Computers, Fun, Google, Hacking, Life, Success , , , , ,

  1. October 18th, 2008 at 01:55 | #1

    NERD!

  2. Raman
    October 18th, 2008 at 03:01 | #2

    Sahi hai beta….. interview me dande hone vale hai tere……..:)

  3. October 18th, 2008 at 09:12 | #3

    was there no course on operating systems ?

  4. October 18th, 2008 at 12:02 | #4

    asshole I didn’t say I implemented link lists using arrays :D I said they are as good as arrays, just to start with :)

  5. October 18th, 2008 at 12:22 | #5

    Python rocks !! hate pointers .
    only issue with python is speed but I have seen python programs running as fast as c++ using psyco.

  6. Sachin
    October 18th, 2008 at 14:27 | #6

    @Pankaj dude how they are as good as arrays , arrays are so simpler than mighty linked list ……..
    @Kulbir Congrats that u finally did dat :)

  7. October 18th, 2008 at 15:47 | #7

    True man .. absolutely true … I started using python from my 4th sem (In fact, I even did my DBMS project in python :o ).. And now its difficult to go back to pointers and OOP in C/C++. The awesome thing about python is that, its simplicity is addictive :) ..

  8. October 19th, 2008 at 02:03 | #8

    True Saini, all my masters i spend more on scripting, lost my grip on C. Thanks for providing those links. Those are useful for my placement prep also..

  9. October 19th, 2008 at 07:12 | #9

    @Raman abhi time hai dude
    @Sidharth there was … but you should care enough to study …
    @Pankaj :P
    @Akshay I don’t really see speed issues…
    @Sachin thanks :D
    @Srirang but you have to …
    @Nithin scripting languages rock!!! good luck for your placement :)

  1. No trackbacks yet.