Monthly Archives: December 2015

Some Data Structure Basics To Know

Depth Firtst Search(DFS) Algorithm Explanation and Implementation in C++

Discovery Time and Finishing Time Code:



Pseudocode from shafayet vai’s blog:



Another code to find the order of the node:
One of my classmates blog link:
and this ppt :
CLRS website:

Shafayet Ashraf:

saurabhschool youtube link :

Youtube video of Mifta Sintaha:

and here is also a good implementation:

Java array basics:

Another code to find the order of vertices:


C program to transpose a matrix



Pattern Printing:Full pyramid in C




C problem solution:Anagrams




Pattern Printing:Star and Half pyramid in C







Pattern Printing: 5*5 STARS in C






To push in github

First we have to make the system to push:
From windows you can use git bash or from unix based system terminal window you can use

Step 1: First we have to check for ssh key

if those files are not present


then we have to genrate new ssh key
Step 2: Generate new ssh key

then follow these steps

simply enter.


here enter the passphrase

Step 3: Add ssh key to the ssh-agent
Follow the code to enter in terminal or git bash

Step 4: Add ssh key to your github  account

if it give some errors then you can type this

Now got to your github account>settings>ssh keys>add ssh key

and open the file with a text editor and copy the text and paste on the github key>give it a name

Step 5:Test the conenction

then this message will come

press yes
and then this will come

voila! you are done 😀

Now system is done now we have the time to push:
Now you can clone the repository you created in your github i will show it in future after cloning go to your named directory and type the commands below


c library function strcmp()

for the pseudocode:


here we are actually comparing the contents of lhs and contents of rhs that is passing from the main function.

declaration can be done by this in nay function

int strcmp(const char* str1,const char* str2)

algorithm should be like this:

Two things to remember we are defining here the address value not the length of the string and so it is the comparison between contents of the strings not the length . 🙂

Git commands in easy way

Some steps are shown here
to clone:

Submitting changes

Final submission


php-gcm project for sending sms to any number through google cloud messaging


This is an opensource project by me and final release is version 1.0.1 till now.
First we have to create index.php for the options that will give the senders number and text box what to send to the sender and then at last the resgistration id from your mobile phone(It will be needed to use your mobile phone as messaging server.It will come from GCM app).


Now we have to create gcmtest.php it is the core part of our project.Here all the settings available that you can customize easily according to your needs.


Now when we run the script from our php backend server then it will show you the page where you will input sender number and message and click submit it will pass through your phone to google cloud messaging server and receiver will recieve a sms from your number.

You can download this whole project from my mirror server:

For testing this app you can go to:
github address for source code:

I took help from the opensource project to learn how they did the gcm passing: (In PHP) (Android SMS gateway call in Ruby)

If you liked the tutorial or face any problem don’t forget to comment in the comment section.Thanx for reading 🙂


PHP-GCM to specified destination number





To call this from browser you have to call like this

another example:

Some shoulder workout


3rd Year Finished….Alhamdulillah

আলহামদুলিল্লাহ… আজকে ৩য় বর্ষের শেষ পরীক্ষা দিয়ে আসলাম…এই সেমিস্টারে অ্যাকাডেমিক প্রেশার এর পাশাপাশি বাসা চেঞ্জ করে মিরপুরের দিকে চলে আসা…প্রতিদিন সাইকেল দিয়ে ভার্সিটি আসা যাওয়া করার মাঝে এক্সিডেন্ট করা সহ মাঝখানে আমার প্রিয় ল্যাপটপটার হার্ড ডিস্ক পুরোপুরি ড্যামেজ হওয়ায় বেশ কিছু মূল্যবান কোড হারানোয় এবং আব্বুর হাত রিকশা থেকে পরে গিয়ে ফ্র্যাকচারড হওয়ায় বেশ মন খারাপ ছিল কিছুদিন…. তারপরও এক্সাম শেষ হওয়ায় বেশ ভাল লাগছে……হয়ত মনটা ভাল করতে জিম করব কিছুদিন…অথবা সাইকেল টা নিয়ে ঘুরে বেড়াব এদিক ওদিক…..আল্লাহ্‌ সহায় হোক… 🙂

5*5 matrix in Javascript,Unityscript(Multidimensional Array)

My code:

//To show the array value

//To print the array