Shubham Sayon

I am a professional Python Blogger and Content creator. I have published numerous articles and created courses over a period of time. Presently I am working as a full-time freelancer and I have experience in domains like Python, AWS, DevOps, and Networking. You can contact me @:

How To Execute System Commands With Python?

In this article, we will learn numerous ways to execute system commands in Python. ➥ Problem: Given an external command that can run on your operating system, how to call the command using a Python script? ➥ Example: Say you want to ping a remote server using your operating system’s ping command—all from within your Python program. How …

How To Execute System Commands With Python? Read More »

[Google Interview] How To Find The Majority Element In An Array?

Company Tags: Google, Amazon, Yahoo, Microsoft This is one of the Google interview questions and one of the most commonly asked questions during many interviews. So, can you give the optimal solution to this problem? Problem Formulation Given an array nums of size n, the task is to return the majority element. The majority element is …

[Google Interview] How To Find The Majority Element In An Array? Read More »

[Google Interview] The Gas Station Problem

🏗️ Company Tags: Google, Facebook, Amazon Are you gearing up for your coding interview? If your answer is yes, then here’s a very interesting interview question for you. Numerous programmers have claimed that they came across this interview question. Hence, there is a high probability that you might come across it as well in your interview. Will you be able …

[Google Interview] The Gas Station Problem Read More »

Python’s time.clock() Vs. time.time() – A Detailed Comparison

Introduction Before we get into the detailed comparison between time.clock() vs. time.time(), there are some prerequisites that you need to focus upon. It is important to have knowledge about the various types of time in the computing world. Don’t worry if you don’t have any idea about this; we have got you covered. Execution Time: …

Python’s time.clock() Vs. time.time() – A Detailed Comparison Read More »

Reverse A Linked List In Python

#Approach 1: Iterative Approach to Reverse Linked List Test Cases: # Example 1 linked_list = Solution() linked_list.push(5) linked_list.push(4) linked_list.push(3) linked_list.push(2) linked_list.push(1) Output: Given linked list 1 2 3 4 5 Reversed linked list 5 4 3 2 1 # Example 2 linked_list = Solution() linked_list.push(5) linked_list.push(4) linked_list.push(3) linked_list.push(2) linked_list.push(1) Output: Given linked list 1 2 …

Reverse A Linked List In Python Read More »