<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Va Roon on Medium]]></title>
        <description><![CDATA[Stories by Va Roon on Medium]]></description>
        <link>https://medium.com/@varunp?source=rss-71cf7086e594------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*J9ZAYTjH1-k9qx9B1sZqQA@2x.jpeg</url>
            <title>Stories by Va Roon on Medium</title>
            <link>https://medium.com/@varunp?source=rss-71cf7086e594------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 03:08:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varunp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Day 1-Sorting]]></title>
            <link>https://medium.com/@varunp/day-1-sorting-936bcbce54d8?source=rss-71cf7086e594------2</link>
            <guid isPermaLink="false">https://medium.com/p/936bcbce54d8</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Va Roon]]></dc:creator>
            <pubDate>Tue, 19 Dec 2017 18:01:15 GMT</pubDate>
            <atom:updated>2017-12-19T18:01:15.653Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Day 1-Sorting</strong></p><p>There are more than 15 ways by which we can sort numbers/elements/words. Don’t believe me? I will show ya.</p><p>We will straight away start with one of the famous sort known as <strong><em>Bubble sort</em></strong>.</p><p>Think of a line of students formed during school assembly. And you want to arrange the line in increasing order of height.</p><p>You are standing in front of the first student. What do you do?</p><p>You pick the first student and check with the second student. If first is small. You keep him with you. You move to third student. You again compare with the first. Let’s say this time third guy turns out to be smaller than the first guy, you pull the third guy and ask the first guy to take third guys posistion. Then you take this new guy and compare with forth guy. Forth guy is taller than him so you don’t do anything. You move to fifth guy and voila! You find this fifth guy to be smaller than the one in your hand. So you tell him to stand in fifth position and pull in the fifth guy.</p><p>This was one pass. At this moment, the shortest guy is in the first position. No matter what.</p><p>Then you take a step ahead and move to the second guy and check his height against third. And replace if you find third to be shorter than second guy. If not you move to forth then fifth and so on.</p><p>Now you have second guy too done. He is taller than first guy but shorter than all the rest of them.</p><p>You take one more step and do the same with the rest of the guys. Till the last guy is found who will be the least shortest of them all and also the tallest. Right?</p><p>So if you see, there are two things you are doing. Moving one step after checking all of the unsorted guys. (Phase) And the other thing is swapping.</p><p>Let’s see this in code.</p><p>void BubbleSort(int elems[], int n)</p><p>{</p><p>For (int pass = n-1; pass &gt;=0; pass--;)</p><p>{</p><p>For (i = 0; i &lt; pass-1; i ++)</p><p>{</p><p>If(A[i] &gt; A[i+1]</p><p>{</p><p>//swap elements</p><p>Int temp = A[i];</p><p>A[i]=A[i+1];</p><p>A[i+1]= temp;</p><p>}</p><p>}</p><p>}</p><p>}</p><h3>Average and worst Time complexity : O(n^2)</h3><p>Best : O(n)</p><p>Space complexity : O(1)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=936bcbce54d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1- Data Structure]]></title>
            <link>https://medium.com/@varunp/day-1-data-structure-7c730bdcf4bf?source=rss-71cf7086e594------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c730bdcf4bf</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Va Roon]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 17:12:29 GMT</pubDate>
            <atom:updated>2017-12-18T17:12:29.042Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction ONLY</h3><p>What is your name? Joseph? How do you know that? <strong>Because it is stored in your brain as Data.</strong></p><p>No Magic. That’s what Data Structure is about. How do you store the things that you want to store? Let’s say you want to store your name and age in a computer. You could write it in a file called as “name_age.txt”. Save it and done. File can now be considered a data structure which has your name and age.</p><p>But if it’s so easy, why are we studying Data Structure (DS) as a separate subject. Let me explain!</p><p>Let’s say there are 100 people and they all want you to store their names and age. You could open that file and type their names and age every time. But what if 100 people becomes 100000? You still could save it the same way but what if one of the guy comes and asks you what his age was? What would you do? Sit and look through each name? What if somebody comes to you asking you to give you all the names of people whose age is less than 30? What would you do now?</p><p>Ordering, reordering, searching, accessing, modifying, grouping all this data becomes a pain if it was all done using just files. We care about optimization. We want efficiency and good performance. That’s our goal. That’s the goal of humanity as well. We are always moving towards efficiency. That’s also the reason why DS exists!</p><p>We will see what are the different ways by using which we can store data. The so called “data structures” that we have in computer science. Think of Data Structures like a box which is black in color, inside which we store our data. How that box stores the data(name,age,address,xyz,anything and everything) is not important at this moment, what’s important is knowing that the black box stores the data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c730bdcf4bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1- What are you learning?]]></title>
            <link>https://medium.com/@varunp/day-1-what-are-you-learning-3085dd1a0dfc?source=rss-71cf7086e594------2</link>
            <guid isPermaLink="false">https://medium.com/p/3085dd1a0dfc</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Va Roon]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 16:44:00 GMT</pubDate>
            <atom:updated>2017-12-18T16:44:00.097Z</atom:updated>
            <content:encoded><![CDATA[<p>Three years back i asked my friend, “What is this programming, what do they ask in Interview”. He said “They give you a problem statement, you need to solve the problem with an algorithm”. I said “Oh, algorithm? You mean like djikstra’s algorithm”. He replied “No. An algorithm is a step by step process to solve any given problem, it need not be a famous algorithm that was invented by someone”.</p><p>So What are you going to be doing? Learning to solve problems. You may write it in English, Chinese or a language that computers understand. It would still be called an Algorithm. When you solve a problem in paper ( could be in English/Chinese/Words) it’s usually called a pseudo-code, but computer geeks like to call it Algorithm anyway, especially when they write in their dorm room window ( Who remembers Social Network movie?)</p><p>[Note: You might not understand anything in this blog today, but you will in a couple of days.]</p><p>Okay. So let’s solve a problem right now and see what happens in an interview. You knock the door of the conference room and the guy inside says</p><p>“Hey, Come in”</p><p>You walk in, shake his hand and he asks you to sit. He asks you about your, your work, past work, past life, this that and finally comes to the main point, that is Programming, “Can you code now?” he asks. You say “Yes”.</p><p>[ This is going to be the easiest interview ever but will still have everything that a company like Google will do]</p><p>He says “Okay. Do you know how to add three numbers?” . You think and say “Yes.”</p><p>Interviewer: Okay, just write the pseudo-code then.<br>You: Okay, I will show you the working code after i show you the pseudo-code then.<br>You write on the paper the following <br>x ← a + b + c</p><p>Interviewer: Okay looks good. Can you tell me the complexity of this code? <br>You : Space complexity or Time complexity?<br>Interviewer : Both.<br>You : Okay. Space complexity will be O(1) and Time complexity will be O(1).<br>Interviewer: Good. Can you write the code now? Which language can you write your code in?<br>You: C++.<br>Interviewer: Sure. Show me the code then, working code.</p><p>#include&lt;stdio.h&gt;<br>using namespace std;</p><p>int main(){</p><p>int result;<br>int num1;<br>int num2;<br>int num3;</p><p>result = num1 + num2 + num3;<br>cout &lt;&lt; “Result : ” &lt;&lt; result;</p><p>}</p><p>Interviewer: Okay Good. Now can you modify this code to accommodate addition of n numbers and not just three. What will you do? What will be the time complexity and space complexity of this code now?</p><p>You : Okay. Time complexity of this code will now be O(n) and Space complexity of this code will be O(n). I will modify the code, watch this :</p><p>#include&lt;stdio.h&gt;<br>using namespace std;</p><p>int main(){</p><p>int result=0;<br>boolean keyIn;</p><p>while(keyIn){</p><p>result = result + keyIn;</p><p>}<br>cout &lt;&lt; “The final output after adding all entered digits is : ” &lt;&lt; result ;</p><p>}</p><p>Congratulations! You got the job.</p><p>Well, this is what happens in any interview. They give you a problem, ask you solve it and then code it, twist the question little bit and challenge your thinking power. They want highly optimized code. What is your task? Optimize it. Now you may have not understood what Time complexity or Space complexity is or problem statement too that well, but as we go along you will understand each term.</p><p>You will know why math is so important in engineering and computer science. Don’t worry if you did not understand anything. We will go through each of these things in detail and i promise, you will know what i am talking about in next couple of days.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3085dd1a0dfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Computer Science. Day 1.]]></title>
            <link>https://medium.com/@varunp/learning-computer-science-9cd4bb0f48f9?source=rss-71cf7086e594------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cd4bb0f48f9</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hackernoon]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Va Roon]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 15:29:34 GMT</pubDate>
            <atom:updated>2017-12-18T16:02:07.067Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning Computer Science. Day 1.</p><p>One language, data structures and algorithms, discrete mathematics and calculus are a must. A must. You don’t know any of them? It’s okay. We will learn together.</p><p>We will start with an object oriented language, C++. Why C++? Because you must know C and once you know C, the best language to master is C++.</p><p>C is a subset of C++. C++ is the super set of C.</p><p>Things to know before you continue.</p><ul><li>We will do one program every day. We will write the code in C++</li><li>We will cover Data Structures and Algorithms too on a daily basis.</li><li>We will take things topic wise. Search, Sort, Graphs, Queues and so on.</li><li>If you follow along, you should be able to crack Google interview by 100th day. That is around 3 months.</li><li>We will study mathematics and physics too. Because no basic science? No computers science.</li></ul><p>We will start with understanding different topics that one must know before getting into coding. I will be writing a blog for each of these on a daily basis covering one topic per subject.</p><ul><li>Data Structure</li><li>Algorithm</li><li>Language</li><li>Design</li><li>Mathematics</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cd4bb0f48f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bit of Bitcoin]]></title>
            <link>https://medium.com/@varunp/bit-of-bitcoin-9a5d1b932912?source=rss-71cf7086e594------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a5d1b932912</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[mining]]></category>
            <category><![CDATA[kids]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Va Roon]]></dc:creator>
            <pubDate>Thu, 07 Dec 2017 16:04:12 GMT</pubDate>
            <atom:updated>2017-12-07T16:29:32.161Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you have a notebook and a pen. You decide to go crazy and build your own game.</p><p>In the first page you write Your name and 100$ or 100Rs depending on where you are. Like this :</p><p>— — — — — — <br>Varun — 100$<br> — — — — — —</p><p>You go to your friend Abhishek and say “Hey Guess What?”. “What?” he asks,</p><p>You say “I have 100 dollars”. He replies “Wow. Where?”. You open the first page and say “HERE!!!”</p><p>He gives you a look and says “Dude you are dumb!”. You say “NO! HEAR ME OUT!”</p><p>You tell him that from now on, every single <strong>favor </strong>you do for me, i will give you 1 dollar. That is every time you do my homework, i will write down your name with 1 dollar and my name with the money that i have.</p><p>Friend agrees and accepts to do this but as a <strong>favor</strong>, your friend is smart. He now on paper should get 1 dollar. <strong>Literally on paper.</strong></p><p>So you take the notebook and write down the following :</p><h3>— — — — — — — — — — — — <br>Varun to Abhishek -1$<br>Varun — 99 $<br>Abhishek — 1$<br> — — — — — — — — — — — —</h3><p>After 3 months, for every weekly homework, he gets 1 dollar so total of 12 dollars.</p><p>Now now he has 13 dollars(12 $ + first 1 $) and you have 87 dollars. Good!</p><p>The page would look like this now :</p><h3>— — — — — — — — — <br>Varun — 100$<br> — — — — — — — — — <br>Varun To Abhishek -1$<br>Varun — 99 $<br>Abhishek — 1$<br> — — — — — — — — — -<br>Varun To Abhishek -1$<br>Varun — 98 $<br>Abhishek — 2$<br>— — — — — — — — — -<br>Varun To Abhishek -1$<br>Varun — 97 $<br>Abhishek — 3$<br>— — — — — — — — — -</h3><h3>.... and so on till finally</h3><h3>Varun To Abhishek -1$<br>Varun — 87 $<br>Abhishek — 13$<br>— — — — — — — — — -</h3><p>So now that abhishek has money(13$), he decides to go to his friend Anand and play the same game with him, Anand at first calls him a fool but then decides to play along and make some money anyway. He asks Abhishek what he did to make this money, Abhishek tells him that he did Varun’s homework and that he had an extra notebook which he gave him and also wrote down all the things that he had written in his book so that their books are always in sync, but with a PROMISE. A promise that every time He play this game with someone he doesn’t know, He needs to call him up and tell him to write down what he writes down. Abhishek listening to this becomes curious and says okay fine i will play this game. Tell me how to make a dollar. Can i do your homework for a dollar just like you did?</p><p>Abhishek says No. The value of this money has now increased, you need to do my homework and clean my Room. Anand agrees. Once Anand cleans his room and does his homework, Abhishek gives him 1 dollar by writing it down on the paper, at the same time, he calls up Varun (the inventor) and asks him to write down what he wrote down which was :</p><h3>Abhishek To Anand (1$)<br>Abhishek — 12$<br>Anand-1$</h3><p>So both the notebooks have the same content, Anand asks for a xerox copy of the page where all the things are written so that he too can play this game with someone else. He promises him that he would call Abhishek and Varun every single time he plays this game with someone else to update the page and keep it in sync.</p><p>The page looks like this :</p><h3>— — — — — — — — — <br>Varun — 100$<br>— — — — — — — — — <br>Varun To Abhishek -1$<br>Varun — 99 $<br>Abhishek — 1$<br>— — — — — — — — — -<br>Varun To Abhishek -1$<br>Varun — 98 $<br>Abhishek — 2$<br>…<br>Varun To Abhishek -1$<br>Varun — 87 $<br>Abhishek — 13$<br>— — — — — — — — — -<br>Abhishek To Anand (1$)<br>Abhishek — 12$<br>Anand-1$<br> — — — — — — — — —</h3><p>This simple page which all three of them have is called as <strong><em>Block chain </em></strong><em>and the coins are called as </em><strong><em>Bitcoin.</em></strong></p><p>There are only <strong>21 Million bitcoins </strong>on this planet. And every promise that is made by someone during the game gives the guy who picks up the call new bitcoins which are out of these <strong>21 million bitcoins</strong>. The process of waiting for the call and picking it up is called as <strong>mining.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a5d1b932912" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Questions to ask]]></title>
            <link>https://medium.com/@varunp/the-questions-to-ask-91393a5bf8?source=rss-71cf7086e594------2</link>
            <guid isPermaLink="false">https://medium.com/p/91393a5bf8</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[founders]]></category>
            <dc:creator><![CDATA[Va Roon]]></dc:creator>
            <pubDate>Wed, 06 Dec 2017 13:56:03 GMT</pubDate>
            <atom:updated>2017-12-06T13:56:03.555Z</atom:updated>
            <content:encoded><![CDATA[<p>Few things to keep in mind when improvising on your idea or product. Taking example of Pushstart (<a href="https://www.facebook.com/groups/Pushstarter">https://www.facebook.com/groups/Pushstarter</a>)</p><p>1. Who are your customers? <br> -Startup founders, People who love to roast others, People who love to help others. People who can get a job in a startup. ( Use this information to bring new users)</p><p>2. What’s the frequency? (Very imp)<br> -How many entrepreneurs can you find? How many active audience do you have? Can you improve?</p><p>3. What do you give them?<br> -A platform to gain more customers. Connect them to other founders. Give people job(a high frequency area). On that note, I would rename pushstart to Startup Repair Shop.</p><p>4. What’s unique about you?<br> -Facebook and startup centric. Connecting founders.</p><p>5. Whose your competition?<br> -YourStory? ProductHunt?</p><p>6. Can you expand to different categories if needed?<br> -Yes. Pushstart Finance, Pushstart CS, Pushstart Pinder, Pushstart Founders, Pushstart Politics?</p><p>7. If you could measure the efficiency optimizations that you made by solving the problem that you are trying to solve, where would you rate your idea/product? <br> -Yourstory helps in telling a story but do they connect you to the right people? No. Any other player who does it? No? Good. You solved that. Efficiency is high but are you connecting the founders to all the required resources? You can increase your efficiency here.</p><p>A motorcycle beats cycle. A car beats both but this changes depending on the environment and what you would consider as efficiency. But in general the above holds true most of the times.</p><p>Low Frequency + Low Efficiency = Loss<br> High Freq + Low Efficiency = Break even<br> Low Freq + High Efficiency = Break even <br> High Freq + X Efficiency = X Profit<br> High Freq + High Efficiency = High Profit</p><p>Read Frequency as the number of active users and efficiency as the ease you brought with your idea/product.</p><p>(Check Delta4 theory for more on this. What I have written may not match Delta4 exactly it’s what I feel after learning about freq and efficiency from the Delta4 theory. At this moment I don’t remember the exact theory but only the variables which are eye openers)</p><p>Frequency matters a lot today because access to Internet gives you immense power and connection. Are you selling something that a small part of the population uses? Can you widen that number by tweaking your product? Can you reach a different category that does not exist anywhere but still be accessible to a wider audience? Are you competing with a lot of other companies? If yes, do you want to be there or move to a different category because there’s a lot of opportunities in other areas as well.</p><p>These are questions that I ask myself when I think of any idea or product. I keep frequency as the most important factor, efficiency the next one. Hope it helps you.</p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91393a5bf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thought Provoked.]]></title>
            <link>https://medium.com/@varunp/thought-provoked-f92381196feb?source=rss-71cf7086e594------2</link>
            <guid isPermaLink="false">https://medium.com/p/f92381196feb</guid>
            <category><![CDATA[future]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[robots]]></category>
            <dc:creator><![CDATA[Va Roon]]></dc:creator>
            <pubDate>Wed, 29 Mar 2017 05:45:14 GMT</pubDate>
            <atom:updated>2017-03-29T11:46:02.949Z</atom:updated>
            <content:encoded><![CDATA[<p>The year is 2730, you are reading this message in your mind without the need of any computer or phone. There are no phones. You have never seen a phone.</p><p>You hear a knock in your mind, you receive the thought, you live it. That’s the protocol. You are in what they call it, the third life. A structure which is connected to a feeder that inputs the required amount of Proteins and Vitamins. Some output medium connected to the human and structure that does other tasks and help the humans live. You do not move consciously. You live all your life in one place, the structure is built in a way that it knows to take care of you all your life. Everything in this world is automated. Everything. Your movements controlled by the structure.</p><p>The chip Elon made is in your brain and now you have become a computer. Reproduction too is automated. You do not need to do anything. You are just a collection of thoughts that come and go.</p><p>Year 2500, the project completed and tested on two human beings who agreed to be tested all their lives.</p><p>Year 2525, the structure was ready to be bought. 2540 it was used by all of the people. Year 2600 Organizations realized that humans can rest and Robots can work.</p><p>The number of human beings to be produced is calculated by all the Robots and now they decide who talks to whom. Every human is independent. No families.</p><p>Year 2750, Bots decide that emotions are bad, they filter out the thoughts and enter in the thoughts that are emotionless. Slowly they kill you and make their own species.</p><p>Year 3000, Earth contains only Bots. No humans.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f92381196feb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>