Category Archives: Cracking the coding interview – a python experience

I decided to learn python. After a basic python book I thought the best way to do it is just … do it. Practice. “Cracking the codinng Interview ” (GAYLE LAAKMANN
, 4th edition) would be a good way to start. Let’s just take the problems from there and see how do they look in python.

Install oracle client on Redhat 7

When trying to run one of our application on a Redhat 7 amazon  instance, I had this error: The application needed the oracle client library to connect to our Oracle DB. To install it, we did: download from oracle the file oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm install … Continue reading

Posted in Cracking the coding interview - a python experience | Leave a comment

Clean files on oracle server to free up disk space

I’m an oracle newbie .  Today I had to free up some disk space on our oracle server. I had to: Step1. delete old databases not used anymore Step2. clean-up the database logs Step1. delete old databases not used anymore  ssh to the … Continue reading

Posted in Cracking the coding interview - a python experience | Leave a comment

Remove docker unneeded containers and images

Docker does not remove your old containers or images. This is your job, not docker’s.  But, at some point, some cleanup needs to be performed. It is up to you to decide what to remove.  I show here an example … Continue reading

Posted in Cracking the coding interview - a python experience | Leave a comment

cracking the coding interview in python – 4.6 common ancestor

Lets solve another exercise from the Trees and Graphs chapter and write some nice python code. Here it is: 4.6 Design an algorithm and write code to find the first common ancestor of two nodes in a binary tree. Avoid … Continue reading

Posted in Cracking the coding interview - a python experience | Tagged , , , | 1 Comment

Cracking the coding interview in python – 4.8 path of given sum

Let’s solve another python exercise. Here it is: 4.8 You are given a binary tree in which each node contains a value. Design an algorithm to print all paths which sum up to that value. Note that it can be … Continue reading

Posted in Cracking the coding interview - a python experience | Tagged , , , , | 2 Comments

Cracking the coding interview in python – 4.7 yesterday’s interview question

Yesterday night when I was about to leave work, go home and write another wonderful article for the millions of readers of my blog, 2 strange guys entered in my office and forced me pass a technical interview in order … Continue reading

Posted in Cracking the coding interview - a python experience | Leave a comment

Cracking the coding interview in python – 4.4 a tree traversal

It is a rainy day. Here in Nice, as everywhere, people use their cars as umbrellas so the traffic jams are bigger that usual. This gives me the time to solve another exercise from the Cracking the Coding interview. Here … Continue reading

Posted in Cracking the coding interview - a python experience | Tagged , , , , | 1 Comment