Posts

Consider telephone book database of N clients. Make use of a hash table implementation to quickly look up client‘s telephone number. Make use of two collision handling techniques and compare them using number of comparisons required to find a set of telephone numbers

/************************** Telephone Book Database using Linear Probing   ***************************/   #include <iostream> #include <bits/stdc++.h> using namespace std; #define max 10   struct client{     long int TeleNo; }; class hashtable{     client sm[max];                 public:                                 hashtable()         //constructor                                 {                                                 for(int i=0;i<max;i++)                                                 {                                                                 sm[i].TeleNo=0;                                                                                                                 }                                 }                                                              void insert();                                 void display();                                 void search();                                 void del();                                

Find Your Purpose

Image
Don't have enough time to consume the entire podcast/Interview? Here are my notes from the interview of Jay Shetty by Tom Bilyeu titled  " Watch THIS to Find Your PURPOSE | Jay Shetty on Impact Theory ". How to find your purpose:            Step 1: Being exposed to unique experiences and role models.           Step 2: Finding that experiences and role models you're passionate about. Taking it seriously.                                                 Observe them (your role models), follow them, network with them, shadow them.           Step 3: Yes or No? Does that work for me? (Go with experiences, not the results.) Define an ideal life(Asked by Tom Bilyeu):       " An ideal life is when we have a heart, head and hand all three working in alignment."          Head: Clarity of vision(what you want)        Heart: Being able to understand your intuitions and heart one's being able to connect and tap into                                     deeper unde

Just show up everyday

Today I saw a reel where the creator was showing how important is just to show up everyday and I was pondering about it for a few minutes. This thought is very useful for someone who's dealing with inconsistency, You have to just show up, even if you did 1% of the task at least you showed up and just showing up continuously will create a habit of doing the tasks even on the small scale and your subconscious will get addicted to the feeling of completing those tasks This has actually worked out in my life. The December month last year was very important for me. I was testing how consistent I can be. I tried stretching exercises everyday and created an excel sheet to take notes that I am doing it everyday. This got me consistent to exercise everyday. I was just after the feeling I used to get when I note my progress in the excel sheet. I got addicted to it and eventually I did stretching everyday for December month.  And now till now I never got inconsistent with my exercise. Just sh

The Progressive House

 Hello Everyone. Swaraj here.     So, the short story here is I have always been interested in EDM production and the Progressive House music  have always been running through my veins.I have always been fascinated and searching my butt off on the internet to learn to make progressive house. But somehow I've always managed to hinder my own progress. I thought using samples and making melodies by watching videos online is like a crime. But soon I realized everyone out there doing the same. Somehow managed to start all over again. Learning and practicing again. Let's see what happens. 

Conquer Social Media addiction

Conquer Social Media addiction      Heyy buddies! Swaraj here! Have you ever felt addicted to social media?  I did! Let me discuss how I conquered my social media addiction. So  I am currently in my BTech👨🏻‍💻 doing online classes💻 in my second year now.🤠 I found myself going through social media📱 (especially Instagram) even during my classes.😅 I feel like being addicted to clicking on that vibrant 2x2 sized icon.📷 My finger was subconsciously moving through the screen to find that small thing and just click on it even when I was not thinking of going through my socials at that time. That day I checked my activity on Instagram and it turned out I spent an average of 5 hours daily on my Instagram.😯 It's shocking when you realise you were always been busy complaining about your tight schedule.😏      So to tackle this, I decided to follow a schedule where I will keep 'NO INSTA ZONES' where I will force myself not to open my Instagram throughout that period. I set up s