LeetCode — Two Sums — aadimator.com

This problem was taken from LeetCode — 1. Two Sum. This post first appeared on https://aadimator.com/leetcode-two-sums/

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

Example

Given nums = [2, 7, 11, 15], target = 9,

Solution

Here, we’ll look at two solutions. One is the obvious but brute-force algorithm, while the other one is somewhat harder to…


I got accepted into the PyTorch Scholarship Challenge program, offered by Facebook, which focuses on teaching Deep Learning using the PyTorch framework.

There were two phases of this challenge. In Phase 1, they selected about 10,000 students worldwide to participate in the challenge. Out of those 10,000 students, only 300 would be selected for Phase 2, in which they’d have access to the complete Deep Learning Nanodegree for free.

As I was planning to learn the Pytorch framework and was looking for some amazing tutorials to get started, naturally I was very excited when I got selected into the Pytorch…


Aadam — Machine Learning Certificate

I’ve been meaning to finish this course for a while now but every time some other attraction caught my attention like some other MOOC or subject. I knew, because of the popularity and the numerous positive reviews, that this course is going to be a good one but every time, there came a new MOOC on some new subject that I’ve been waiting for and I rushed towards it.

But now, as Andrew Ng released a new specialization on Deep Learning, which I am dying to start next, I was motivated enough to finish this course because I thought that…


Mazar-e-Qaid

This is my first ever post in Urdu. I’ve got to say that writing in Urdu has proven to be a lot more daunting than I imagined it to be.

Here, I’m just posting the image of the article as Medium doesn’t allow yet to write posts in Urdu. For a better reading experience, I’d suggest to read it on the site.
aadimator.github.io/ae-rooh-e-qaid/


A while back, I started the Deep Learning course provided by fast.ai and after going through the first few lessons, I felt like I needed to brush up on my Machine Learning skills first if I want to get a deeper understanding of the Deep Learning. It wasn’t that they were going at an extra pace or were covering hard mathematical problems and complex algorithms, but they did require us to learn some material on our own, by reading articles or watching some videos or simulations etc.

Anyways, I decided to put the fast.ai course on hold for a while…


Photo by Alex Knight on Unsplash

After dabbling in Machine Learning and Deep Learning for a few months, I’ve decided to dip my toes into the field of Robotics. My favorite pastime is to learn about new things and to explore the uncharted territory. For now, my heart is set on learning about the Robots, getting a general overview as to how they perform their functions and how to train and build a robot.

I’m not very enthusiastic about the hardware side of the robots but the software, the soul that drives them. In order to create better software for the robots, having a broad overview…


Recently, as I was working on Odoo, I came across a problem when I wanted to print a report. It was generating the HTML report just fine but when I wanted to download that report, it was having difficulty converting that report into PDF. Basically, the version of wkhtmltopdf library wasn’t compatible with the current setup.

I tried various solutions that I could find on the internet but none worked for me except the one I’m about to document here. Most of the solutions suggested that installing the wkhtmltopdf version 0.12.1 , which is the recommended version from Odoo, would…


What makes the fast.ai course on deep learning different from many others !

fast.ai — Jeremy Howard

For a long time now, I’ve been planning to start learning about the deep learning, but whenever I start reading about it, either through books such as The MIT Press Deep Learning book, or through some online video or MOOCs, I get bombarded with strange mathematical formulas and complex equations. Of course this complex mathematics is quite necessary to understand Deep Learning models but it also repels a beginner from learning about this field, as a beginner is more result oriented.

If I was a PhD student…


Simple Array Sum — Hackerrank

Given an array of N integers, can you find the sum of its elements?

Input Format

The first line contains an integer, N, denoting the size of the array.
The second line contains N space-separated integers representing the array’s elements.

Sample Input

6
1 2 3 4 10 11

Sample Output

31

Explanation

We print the sum of the array’s elements, which is: 1+2+3+4+10+11 = 31.

My Solution:

Here’s my Python solution. It’s pretty straightforward. We just use the built-in function sum() on the list of integers that we get from the input()

https://gist.github.com/aadimator/e5b79858b3b95f2826e579b97b5aa0be

I also did the same problem in C++


This week, my prestigious teacher, Syed Shabih Naqvi, who teach us Data Mining at University of Haripur (UOH), showed us how to write simple database queries. He used an old version of Oracle for demonstration purposes and asked us to practice this at home because otherwise, this course won’t be any fun. The problem with that oracle version is that it’s difficult to set it up because of compatibility and configuration issues and in my opinion, it’s an overkill for just testing purposes. SQLite is a far better fit for this kind of situation. …

Aadam

I am a passionate individual with a zest for knowledge which drives me to learn about new concepts and technologies.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store