<?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 Manraj Chalokia on Medium]]></title>
        <description><![CDATA[Stories by Manraj Chalokia on Medium]]></description>
        <link>https://medium.com/@manrajchalokia?source=rss-cb597a2c1b04------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4GGI9vipIrMIrWn-jvcPdw.jpeg</url>
            <title>Stories by Manraj Chalokia on Medium</title>
            <link>https://medium.com/@manrajchalokia?source=rss-cb597a2c1b04------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:00:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manrajchalokia/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[How Hashing can be used to route request workload and would caching be useful in such a case?]]></title>
            <link>https://medium.com/@manrajchalokia/how-hashing-can-be-used-to-route-request-workload-and-would-caching-be-useful-in-such-a-case-69e6aeec81c7?source=rss-cb597a2c1b04------2</link>
            <guid isPermaLink="false">https://medium.com/p/69e6aeec81c7</guid>
            <category><![CDATA[hashing]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[caching]]></category>
            <category><![CDATA[load-balancing]]></category>
            <dc:creator><![CDATA[Manraj Chalokia]]></dc:creator>
            <pubDate>Sat, 14 Aug 2021 20:12:24 GMT</pubDate>
            <atom:updated>2021-08-14T20:12:24.143Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/666/0*P6c8muApQW4FcL5-.png" /></figure><p>We all have studied hashing in data structures and algorithms.</p><p>Let’s look at a use case today in real life. This is just ONE of the use cases but an interesting one, so hopping on to the example straight away without further ado.</p><p>Let’s consider the example of you posting something over Facebook/LinkedIn. Often times after posting on the website, we realize that we have forgotten something (probably to tag someone on the Facebook post or maybe forgotten to add an image in an article on LinkedIn). What do we do next? We edit the post, right?</p><p>And trust me this is human behavior, we forget stuff and as soon as we have posted, we realize we should add/modify our post a little.</p><p>To ensure that all this happens at a very fast speed, often servers at the back-end maintain an in memory/out of memory cache. They might not always write data to the database. Wondering where hashing would come into play, wait for it!</p><p>Think of 5 clients (in reality there will be millions) requesting data from 5 servers of the website at the back-end. Assume there is a load balancer in between to distribute the request load amongst the servers. Big systems often have more than one load balancer for this purpose.</p><p>Now there are many request routing strategies adopted by a load balancer, it can be done randomly, there is a round robin approach, a weighted round robin and many more. Out of all these approaches used to route the requests to servers, there is a hashing approach as well.</p><p>Let’s consider that we have 5 clients: A, B, C, D &amp; E and 5 servers S1, S2, S3, S4 &amp; S5.</p><p>The load balancer routes requests after applying a hash on some property in the client request, say the location of the client or maybe something else. (This hashing function is going to distribute requests among the five servers uniformly, don’t worry about that, there are plenty of hashing functions which do this job pretty well).</p><p>Since the hash function distributes request load uniformly, we can assume for our example that each single request got routed as shown below.</p><p>Request A -&gt; Server S1</p><p>Request B -&gt; Server S2</p><p>Request C -&gt; Server S3</p><p>Request D -&gt; Server S4</p><p>Request E -&gt; Server S5</p><p>Now, remember that earlier in this article I talked about each server having a cache as well. Hitting the database every time isn’t a preferred approach, systems use caches for speed up.</p><p>Can you see the benefit of using the hashing approach to distribute requests amongst servers?</p><p>So, hashing guarantees that a particular client’s requests would always be routed to the same server to which it was routed in the past. This essentially means that the cache in that server (to which your request was routed to in the past) would have some data about the post you are editing or article you are editing. In other words, that particular server would never have to hit the database unless its cache went down.</p><p>Okay, that was the good part about the hashing approach of distributing request load, coming to the cons now.</p><p>What do you do if the server goes down?</p><p>Since your hashing algorithm is the same, some requests would be routed to the dead server.</p><p>Even if you go ahead and change the hashing algorithm, it might not be of much help.</p><p>Why? Let’s consider the same example.</p><p>Before:</p><p>Request A -&gt; Server S1</p><p>Request B -&gt; Server S2</p><p>Request C -&gt; Server S3</p><p>Request D -&gt; Server S4</p><p>Request E -&gt; Server S5</p><p>Let’s say Server S1 went down.</p><p>After server S1 died (and if you change the hashing algorithm)</p><p>Request A -&gt; Server S4</p><p>Request B -&gt; Server S5</p><p>Request C -&gt; Server S2</p><p>Request D -&gt; Server S3</p><p>Request E -&gt; Server S4</p><p>It is quite likely that if you change the hashing function/strategy in the load balancer, the data stored in the caches earlier might not be of any use.</p><p>Earlier S2 had cached client B’s data but after you changed the hashing algorithm client B’s data which was earlier cached in server S2 isn’t of any use because any subsequent request made by client B is going to get routed to Server S5 (I took the example of client B but for our example it would work if you picked up any of the clients). And the impact would be very large if the number of users/clients increase from just 10s to millions (reality).</p><p>There are solutions out there to such problems, but I would like you to give it a thought.</p><p>Open to discuss, DM me if you want to have a chat about this.</p><p>Hope you liked it and learnt something new from this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69e6aeec81c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wonder how a Recommendation System works?]]></title>
            <link>https://medium.com/codex/wonder-how-a-recommendation-system-works-5731a88ebf10?source=rss-cb597a2c1b04------2</link>
            <guid isPermaLink="false">https://medium.com/p/5731a88ebf10</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Manraj Chalokia]]></dc:creator>
            <pubDate>Sat, 14 Aug 2021 20:09:34 GMT</pubDate>
            <atom:updated>2021-08-15T16:18:12.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*qG-omMYuXVrtxelbtClUZQ.png" /></figure><p>We all use Netflix, YouTube, and Amazon extensively in our daily lives. Ever wondered how recommendation systems work? With the passage of time, the recommendations seem to have become increasingly customized. Of course, why wouldn’t that be?</p><p>We rate movies, like/dislike videos/ purchase products. There is a lot of data out there, but is it enough to build a robust recommendation system?</p><p>This article is going to outline how we could build recommendation systems for our applications. I will not delve much deep into the math and would try to keep it as simple as possible.</p><p><em>There are two major recommendation system techniques that I would talk about.</em></p><p><em>1. Content-based recommendation</em></p><p><em>2. Collaborative Filtering</em></p><p>Let’s talk a little bit about the content-based recommendation system and then I will hop on to the Collaborative Filtering technique, <em>Math magic.</em></p><p>What exactly does content-based recommendation mean? How do we model this as a machine learning problem?</p><p>There are usually 2 major components in a recommender system. One is the user and the other, the product. Amazon, Netflix, YouTube have millions of users and millions of products, movies/documentaries/series, videos.</p><p>We can visualize our data as a data matrix (I would use D to refer to this matrix throughout the article) where each row indicates a user and each column indicates a product or vice-versa. In both cases, the size of this matrix is going to be huge, and when I say huge, I mean VERY HUGE. What does each cell in this N x M matrix represent? (N: number of users and M: number of products). These cell values can either be ratings or be Boolean(true/false) values, say if a person did watch the video or if he/she didn’t watch the video.</p><p>This matrix is going to be really very sparse. Why? How many movies do you rate on Netflix or how many videos do you like or dislike? Very few, and this behavior is similar across most of the users, making this data matrix very-very sparse.</p><p>In content-based recommendation systems, you will have to come up with feature vectors for the users and for the product.</p><p>You would then utilize these feature vectors to predict the data matrix values (i.e., whether a person would give a 1,2,3,4, or 5-star rating to a movie or if he/she would watch or not watch a particular video). This simply boils down to a standard classification/regression problem.</p><p>There is a small problem with this way of building a recommendation system. Oftentimes, the data matrix D is going to be very sparse and the proportion of data points coming into the training set is going to be substantially less than the ones coming in the test set. How do we ensure that our content-based recommendation system is going to be robust?</p><p>Okay, let&#39;s jump to another elegant technique: Collaborative Filtering.</p><p>I would prefer to call it Math’s magic. Machine learning is a field that does borrow some ideas from a lot of other domains like statistics, mathematics, probability, thermodynamics, and whatnot.</p><p><em>There is a technique named Matrix factorization which can be used to build something which is known as a collaborative filtering-based recommendation system.</em></p><h4>A brief about Matrix Factorization:</h4><p>Let’s say we have our Data Matrix/Ratings matrix (D): We can write it as the product of 2 separate matrices U and P-transpose. This is exactly analogous to how we would write 10 = 2 * 5. The matrices U &amp; P-transpose are considered to be the factors of the data matrix D.</p><p>Dimensions of matrix D: N * M (N: no. of users, M: no. of products, D: sparse matrix which contains our ratings)</p><p>Dimensions of Matrix U: N * f</p><p>Dimensions of Matrix P: M * f, implying that P-transpose would have a dimension of f * M.</p><p>I will use P.T as a short form for P-transpose.</p><p>(Don’t worry about f yet, it’s a hyperparameter, we can tune it later)</p><p>I will come to why do we need these matrices sometimes, but let’s figure out how to find these matrices U &amp; P.</p><p>We solve optimization problems in machine learning, don’t we? Yes, we can use stochastic gradient descent to find these matrices. Our loss would be summed over all the non-empty data points (ratings in D),</p><p>(over all non-empty cells of D): ∑ [(Dij — Ui * Pj.T) ^ 2].</p><p>Dij: The non-empty rating given by User i on Product j.</p><p>Ui: ith row of matrix U indicating an f-dimensional vector for the User-i</p><p>Pj: jth row of matrix P or jth column of P.T (P’s transpose). This too is an f dimensional vector.</p><p>Okay, now we have the matrices U &amp; P.</p><p>U &amp; P.T are factors of our data matrix D, implying that U x P.T = D with of course some minute errors. (Loss is not always zero).</p><p>We fill the empty cells in D.</p><p>If we wish to fill D (2,3), we would take the dot product of the vectors U (2) and P (3). What does D (2, 3) mean? It’s the predicted rating which user U (2) would give on product P (3).</p><p>We have a matrix D now, where all the ratings are filled. Now, I guess it’s pretty easy and straightforward to go ahead and recommend a movie/video to a user.</p><p>Since D if filled (with no empty cells), we can sort the column values for each user (i.e., each row). This is how collaborative filtering works. <em>Isn’t this magic done using Maths? </em>😀</p><p>Before I put an ending note to this article, I chose the names U and P to make things a little intuitive.</p><p>U: N * f matrix represents f dimensional feature vectors for all the N users.</p><p>P: M * f matrix represents f dimensional feature vectors for all the M products/videos/movies.</p><p>I hope you like it!! 😀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5731a88ebf10" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/wonder-how-a-recommendation-system-works-5731a88ebf10">Wonder how a Recommendation System works?</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importance of Parallel and Background Processing in Low Latency Web Apps]]></title>
            <link>https://medium.com/codex/importance-of-parallel-and-background-processing-in-low-latency-web-apps-b57663c4e5f1?source=rss-cb597a2c1b04------2</link>
            <guid isPermaLink="false">https://medium.com/p/b57663c4e5f1</guid>
            <category><![CDATA[threads]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[async]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Manraj Chalokia]]></dc:creator>
            <pubDate>Sat, 14 Aug 2021 19:58:39 GMT</pubDate>
            <atom:updated>2021-08-15T14:01:03.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Process &amp; Threads" src="https://cdn-images-1.medium.com/max/510/0*bVpwd2aBltL1jtp0.PNG" /><figcaption>src: <a href="https://www.slashroot.in/difference-between-process-and-thread-linux">https://www.slashroot.in/difference-between-process-and-thread-linux</a></figcaption></figure><p>A few days ago, I came across a scenario where I was given the work to optimize an MVC application’s performance and a service.</p><p>Often while at college, we don’t encounter such scenarios where we think of optimizing performance for best possible user experience. Usually, we start building a project and start coding without keeping in mind the load the application would end up having in the course of 2–3 months. We talk about scalability, but sometimes our code starts breaking when bottlenecks are hit. It is very important to be aware about the behavior of the code. Think of Google for a second, when you put in something you wish to search for, do you see it asking you to wait for a few seconds before it gives you a result back? No, right? Try looking into how these applications manage fetching your results in a fraction of a second, most importantly for users worldwide at the same time.</p><p>A small tip to the students in the CS community- When you start writing code, think about the impact and the customer base the code would have and would it be scalable a few months down the line once subscribers are hooked to your product.</p><p>Coming to my learning from the previous few weeks: After a long time, I encountered the need to study processes and threads. You would be able to recall that we all used to study threads and processes in our OS classes in college time. I got an opportunity to exercise that in my code to make the application much more responsive and user-centric.</p><p>Now you see, in user-centric applications, it is very important for them to be low latency and fast. Speed is what matters. In my opinion, in this ever-changing world, if your application isn’t fast, you would end up losing a subscriber/user.</p><p>Try giving a read about how threads work and what are attached and detached child threads. Once you perform an action over a website, you may have to consider introducing background processing in the UI web app. You could spin up child threads which keep running in the background and the user would never notice that. It is quite true that the tasks and threads have their idiosyncrasies, but if you are interested in what I am talking about, try doing an internet search. You will start turning stones and the async behavior would become a little clear. (Have shared a few links at the end as well, would recommend to start there).</p><p>Everything has its pros and cons. Introducing detached child threads in your web application would make you lose control over it, since the only thing you can control is the parent threads. Moreover, here is a question for you- How do you know if your child thread is working or it died for some worldly reason? (Feel free to discuss this in the comments)</p><p>Most of the details would be abstracted in today’s frameworks. In ASP.Net MVC apps, there is a notion of tasks and often the thread details get abstracted from you. There are properties though, which you could utilize to actually uncover the peculiar behavior of threads.</p><p>On an ending note for all the students and SWEs out there- The most important thing in an application which you build, starts with the “P” for performance. Having said that, don’t sacrifice security for it. Keep things in mind while coding and think how your app should behave when there are multiple people using it, multiple people hitting the service at the same time. In some other scenarios you end up making so many external API calls, that the service starts thinking that you simulated a DOS attack on the service. This is an interesting problem to consider.</p><p>For all those who read till here, sharing a few useful links with you. You would find some things a little contradictory, but I would say explore them out whenever you get a chance. Things would slowly start becoming crystal clear.</p><p><a href="https://www.go4expert.com/articles/complete-threading-tutorial-c-sharp-t30063/">https://www.go4expert.com/articles/complete-threading-tutorial-c-sharp-t30063/</a><br><a href="https://www.go4expert.com/articles/advance-threading-tasks-c-sharp-t30067/">https://www.go4expert.com/articles/advance-threading-tasks-c-sharp-t30067/</a><br><a href="https://www.pluralsight.com/guides/understand-control-flow-async-await">https://www.pluralsight.com/guides/understand-control-flow-async-await</a><br><a href="https://medium.com/devtechblogs/overview-of-c-async-programming-with-thread-pools-and-task-parallel-library-7b18c9fc192d">https://medium.com/devtechblogs/overview-of-c-async-programming-with-thread-pools-and-task-parallel-library-7b18c9fc192d</a><br><a href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskfactory.startnew?view=net-5.0">https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskfactory.startnew?view=net-5.0</a><br><a href="https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/task-based-asynchronous-programming">https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/task-based-asynchronous-programming</a><br><a href="https://www.c-sharpcorner.com/article/task-and-thread-in-c-sharp/">https://www.c-sharpcorner.com/article/task-and-thread-in-c-sharp/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b57663c4e5f1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/importance-of-parallel-and-background-processing-in-low-latency-web-apps-b57663c4e5f1">Importance of Parallel and Background Processing in Low Latency Web Apps</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time based splitting and determining if Train & Test data come from the same distribution]]></title>
            <link>https://medium.com/@manrajchalokia/time-based-splitting-and-determining-if-train-test-data-come-from-the-same-distribution-e1d2ea881af8?source=rss-cb597a2c1b04------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1d2ea881af8</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Manraj Chalokia]]></dc:creator>
            <pubDate>Sun, 02 May 2021 12:44:22 GMT</pubDate>
            <atom:updated>2021-08-14T19:46:59.373Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*MZaE5K3IBgWJf6FJskeJ2A.png" /></figure><p>I would be discussing two concepts in the below article which are somewhat interlinked.</p><p>1. Power of time-based splitting over Random Splitting</p><p>2. How do we know that the train and test set distribution is the same for our data?</p><p>While solving ML problems, often times, we do a random splitting of the data. A portion of this article is going to emphasize on the importance of time-based splitting. Yes, splitting the data on time can be helpful and can bring out a lot of insights in your data.</p><p>Okay, let’s consider a use-case. You are working with the dataset of all the products on the Amazon website, or say you are working with the Netflix movie dataset. What would you prefer: A time-based split or a random split? Give this a thought.</p><p>Consider that the dataset has a feature which gives you the timestamp of that particular data point, which essentially would allow you to split your data based on time. Amazon has thousands of products on their website and similarly Netflix has thousands of movies. These data points change with time.</p><p>For the case of Amazon, the company is adding new products daily and removing some products (for instance: the ones for which customers might not have given good reviews). Things change with time and this indicates that such sort of data has a temporal nature. It makes much more sense in such cases to split your data on the basis of time.</p><p>Divide the data into train, cross-validate and test datasets in a way that the cross validate data points come chronologically after the data points of the train set and similarly the data points in the test set chronologically come after the data points in the cross-validate data set. In other words, sort your data points based on the time stamp feature, take say the first 60% of data into train, the next 20% into cross-validate and the remaining 20% into test. (Feel free to change the percentages, depending on your use case).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*UUnv-Ayd_8IDoQhRqEDRRA.png" /></figure><p>Building a model would only make sense sometimes if data is split on time. Let me throw some light on it.</p><p>For instance, if the train and test data set distributions are different, no model would ideally work how much ever hyper-parameter tuning you might have done. Think of running an ML model (which you built 2 years back on historic data), in today’s date. If the data on which it was trained had a temporal nature, your model is very unlikely to work today. It would require re-training on new data. This temporal nature of data unfolds the importance of time-based splitting for datasets which change with time. Now, to know how frequently the data is changing, you need a domain expert, or you need to probably try out things in production. Having a time-based data split will help you answer the question if any machine learning model is going to work or not on your data.</p><p>Let’s consider a case where you have a temporal nature dataset like the ones mentioned above in the article.</p><p>We go ahead and split the data based on time into train, cross-validate and test datasets.</p><p>Now we train our model (M) on the train dataset, tune our hyper-parameters on the cross-validate dataset and test it on the test-set. Let’s say we get the below values of the accuracy (Consider this to be the KPI-Key Performance Indicator for the problem at hand).</p><p>Train set: 95%</p><p>Cross-validate set: 94.5%</p><p>Test Set- 70%</p><p>Looking at these values, something definitely seems odd.</p><p>What could be the reason for such a big difference in the KPI value for the test and the train set?</p><p>Could it be that the train set and test data distributions are different? Let’s find out.</p><p>Make a new dataset say D~.</p><p>Add the X_train and X_test into D~. You don’t need to add the Y_train and Y_test to the new dataset which you are creating. Add a Y label which reads value ‘0’ for the rows which were taken from the train set and value ‘1’ for the rows which were taken from the test set.</p><p>Do you see the solution yet?</p><p>Yes, pose this as a classification problem to an ML model say M~. If the model’s (M~) performance is bad, it means that the 2 classes were inseparable, i.e., the train set and test data points couldn’t be separated implying that they belong to the same distribution.</p><p>On the other hand, if this classification model (M~) which you built has a good accuracy, it means that the train data set distribution is different from the test data set distribution, implying that there might not be any machine learning model (M) which would be able to make good predictions for your data (original ML problem).</p><p>Now, do you see that having figured out that the distributions are different might not have been possible had we done a random split of data. Had we done a random split on a data which had temporal nature, we would have made a model which might not have made much sense. It could have been possible that we were trying to predict a test data point which chronologically came into picture before the training data point. Leaving it to you for further thought.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1d2ea881af8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Full use of the Lock-down and get Hired in Top Giants]]></title>
            <link>https://medium.com/@manrajchalokia/make-full-use-of-the-lock-down-and-get-hired-in-top-giants-752b02d0d326?source=rss-cb597a2c1b04------2</link>
            <guid isPermaLink="false">https://medium.com/p/752b02d0d326</guid>
            <category><![CDATA[undergraduate]]></category>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[jobs-search]]></category>
            <category><![CDATA[lockdown]]></category>
            <dc:creator><![CDATA[Manraj Chalokia]]></dc:creator>
            <pubDate>Sun, 16 Aug 2020 12:01:44 GMT</pubDate>
            <atom:updated>2021-08-14T19:22:47.716Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Code and Learn during Lock-Down" src="https://cdn-images-1.medium.com/max/900/1*pzL6gOaFrRjOQSCaGEJp-Q.png" /></figure><p>Let’s start with this,<br><strong>You get what you put in!</strong><br> <br>This article is for all those who are in college right now and wish to make it up to top companies.</p><p>There are a bunch of things that you folks can learn. The only thing is that you will need to choose and prioritize what all you need to learn.<br> <br>The first major important thing for a CS undergraduate is the knowledge of data structures and algorithms. There are a lot of coding platforms and resources on the internet from where you could learn.</p><p>My favorite ones:</p><p>1. LeetCode</p><p>2. Geeks for Geeks</p><p>3. Interview Bit</p><p>Look, it all depends on person to person, everyone has a different level of preparation and everyone has their strong and weak topics. You need to find out the things which you are good at and you need to improve the concepts you are weak at. <br>For algorithmic questions, try solving problems without topic tags. This will help you a lot, because I have seen from personal experience that it is very difficult to figure out the solution to some problems if you have not read the topic tags and that is what makes you think and helps you be creative at your approaches. If you have the topic tag, it’s just like someone has spoon fed you the answer and you just need to kind of write the code for that.</p><p>The second most important thing which helped me ace my ds-algo skills was regularity. Try coding everyday. Start with a minimum of one question daily, and I assure you in no time you will get used to the routine and start solving 5+ problems everyday. Further to this, try giving real time contests, that will give you a sense of the clock ticking in front of you when you are solving the algorithmic problem, your rank will get changed dynamically during the contest and you will be motivated to code faster and come up with good innovative approaches.</p><p>LeetCode hosts contests every weekend and I would highly recommend you folks to give those contests. They will really enhance your coding skills. Its not about giving just 3–4 contests, its about giving them over a period of time, developing a habit to give them. This will also help you evaluate yourself after months of preparation.<br> <br>Reading the discussion section is also an important place from where you will get to learn and grow. Sooner or later, you will also be able to start sharing your approaches in the discussion section.</p><p>One more important tip: Don’t jump to complex topics, learn the basics first. Learn recursion before you jump to dynamic programming. Try coming up with brute force solutions and then try optimizing them. This approach helps a lot during contests, at least it has helped me in getting my solutions accepted. The thing is that if you have a complex problem at hand, it is not so easy to come up with the best solution in the first go, so try with the easiest approach and then focus on making it better and optimizing it. This is exactly what is expected in an interview. Try coming up with simple solutions, and then discuss your approach of how you could make it better with the interviewer. This will help demonstrate your thinking ability and that may get you hired. Don’t run behind standard textbook solutions, try coming up with your own. Trust me, you will notice after some time that your solution maybe better than the standard solution.</p><p>Okay, so now let’s talk a little about projects.</p><p>Try building projects. Be it web development or machine learning or any other field try building projects and be sure to recollect what all challenges you had faced during working on that project and how you were able to solve them. This will help you drive the conversation forward with the interviewer. <br> <br>While we are in a college, we are usually hesitant to search and explore new things, we feel that we wouldn’t be able to take up a task if we haven’t learnt the tech stack behind that. But in industry, this is not what will happen. You will be working on new technologies everyday, and you will have to explore. So, try to get the habit to google search everything because trust me, it is going to help you a lot. Alongside all this, share your knowledge with the tech community because that is how you will learn and grow. When you join the industry, in no time you will be asked to build new things like spinning up APIs, or running your own servers, trust me its fortunately not rocket science and is pretty much easy even if you don’t have much background about all of that. The only thing you need to do is to make learning a habit.</p><p>For all the readers who have made it so far in the article, listing a bunch of useful resources for you all. 😊<br> <br> 1. Udemy</p><p>2. Udacity</p><p>3. Coursera</p><p>4. FreeCodeCamp</p><p>5. LeetCode</p><p>6. Geeks for Geeks</p><p>7. Interview Bit</p><p>8. Machine Learning Mastery</p><p>Sharing the links of my LeetCode, LinkedIn and GitHub profiles as well!</p><p>LinkedIn: <a href="https://www.linkedin.com/in/manrajchalokia/">https://www.linkedin.com/in/manrajchalokia/</a></p><p>GitHub: <a href="https://github.com/MANRAJSINGH007">https://github.com/MANRAJSINGH007</a></p><p>LeetCode: <a href="https://leetcode.com/manrajsingh007/">https://leetcode.com/manrajsingh007/</a><br> <br> Good luck!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=752b02d0d326" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>