I would describe my internships as one of the experiences that have highlighted my collegiate career. From the recruiting process, to the summers spent working for different companies, I have learnt a lot of things that have helped me not only in my job search but also personally made me a better human.
Here are the five things that I have learnt over the years, which I hope will help you in your internship search.
I began this year very excited and happy celebrating the end of the previous year which for me had been so hard, and overwhelming. The fact that I also celebrate my birthday on new years made it even more exciting. I felt like I was turning over a new leaf! Part of me was so hopeful and so energetic about planning for and finally starting to accomplish some of my goals, which unfortunately I had not achieved in 2020.
It has been fifteen days into 2021, and like many others I have been following the news as well as the…
How to solve the Happy numbers problem using Python
Write an algorithm to determine if a number
A happy number is a number defined by the following process:
Starting with any positive integer, replace the number by the sum of the squares of its digits.
Repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1.
Those numbers for which this process ends in 1 are happy.
nis a happy number, and
We are given an example…
Given an integer
true if it is a power of two. Otherwise, return
n is a power of two, if there exists an integer
x such that
n == 2x.
We are given a couple of examples to demonstrate how the output should look like:
Input: n = 1
Explanation: 20 = 1
Input: n = 16
Explanation: 24 = 16
Input: n = 3
This is a leetcode easy question, hence it is expected that you should easily find an optimal solution…
If you are in a career in technology, you have probably faced this dilemma when it comes to which company to work for.
People often find it hard to turn down an offer from a big tech company over a startup that people do not even know about. In fact most people prefer to work at either one of the big tech companies say, Facebook, Apple, Amazon or Google. A hot new startup like Zoom for instance, is also becoming a favorite choice for people when it comes to choosing which company to work for. …
Given an array
n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.
Here, we will use the integers
2 to represent the color red, white, and blue respectively.
We are given a follow up and told to solve this problem without using the library’s sort function and also whether we can up with a one-pass algorithm using only 0(1) constant space.
Here is an example of how the output should look like once solved
We all have companies that we so bad want to work at or even intern at. For me, Google, Microsoft or Facebook was that company. I know what you’re thinking about haha, of course it had to be one of the big tech companies. Well, we are all allowed to dream ain’t we?
My dream to work in one of these companies propelled me to spend my time preparing so hard for their interviews and applications. I diligently took the time to practice the coding challenges and even do mock interviews just to get ready. I actively used networking platforms…
Summer 2019, I had just finished my sophomore year of college and declared CS as my major. Being a CS student, I had seen upper class students secure internships with big tech companies in Silicon Valley, and honestly the thought of having to prepare for a technical interview let alone secure a summer internship really scared me. At the time I had only taken basic CS and Math classes. I barely had any CS project on my portfolio and was not at all confident in my coding skills.
This is another hard level leetcode problem commonly asked during coding interviews. To be able to solve this problem you first need to know how to solve the Merge Two sorted lists problem.Therefore make sure you check my approach of solving the merge two sorted lists problem first before going into this problem.
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
The brute force solution that someone would definitely first think about when it comes to solving this problem is…
This is another leetcode easy level problem and it is fundamental to as well learn how to quickly solve this when asked in an interview setting.
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->4, 1->3->4Output: 1->1->2->3->4->4
Problem solution approach
We should create a new linked list and initialize a zero pointer that points to the first node. We then iterate using the pointer continuously adding nodes in the linked list while traversing both lists.