## Python Reverse Integer – LeetCode Solutions

LeetCode has a Medium coding Problem in Its’ Algorithm Section in Python “Reverse Integer”. Today We are going to solve this problem. LeetCode Link of the Problem is HERE Question Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 – 1], then return 0. Assume … Read more

## ZigZag Conversion – LeetCode Solutions

LeetCode has a hard coding Problem in Its’ Algorithm Section: “ZigZag Conversion of Given String”. Today We are going to solve this problem. LeetCode Link of the Problem is HERE. Question The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a … Read more

## Longest Palindromic Substring Solution – Python LeetCode

LeetCode has a hard coding Problem in Its’ Algorithm Section: “Longest Palindromic Substring Solution From String”. Today We are going to solve this problem. LeetCode Link of the Problem is HERE Question Given a string s, return the longest palindromic substring in s. Example 1: Input: s = “babad” Output: “bab” Explanation: “aba” is also a valid answer. Example … Read more

## Find Median Of Two Sorted Arrays – LeetCode Solutions

LeetCode has a hard coding Problem in Its’ Algorithm Section: “Find Median Of Two Sorted Arrays”. Today We are going to solve this problem. LeetCode Link of the Problem is HERE Question Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall … Read more

## Longest Substring Without Repeating Characters – LeetCode Solutions

LeetCode has a coding Problem in Its’ Algorithm Section: Finding “Longest Substring Without Repeating Characters in a String”.Today We are going to solve this problem. LeetCode Link of the Problem is HERE. Question Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = “abcabcbb” Output: 3Explanation: … Read more

LeetCode has a coding Problem in Its’ Algorithm Section which is Add Two Numbers Linked List Python. Today We are going to solve this problem. LeetCode Link of the Problem is HERE. Question You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their … Read more

## How to do Matrix Multiplication in Python – Codewars

You may have Multiplied matrix in your linear algebra class but you know how to multiply to the matrix in python. In Today’s post, we will go through the process of How to do Matrix Multiplication in Python from scratch. Codewars Python in its 5kyu Kata has given us a problem to Multiply two Matrix. Question The … Read more

## How to Sort Numbers in Python without sort Function

Today we are going out to Sort Numbers in Python without sort Function. There is a similar Kata in Codewars to Sort only odd Numbers without sort Function in Python. The link of the similar Kata (sorting only odd numbers) is given HERE Task: You will be given an array of numbers. You have to sort the … Read more

## Python get domain name from URL – Python Solutions

Today we are going out to find the domain name out of the URL string through Python. There is a similar Kata in Codewars to extract the domain name from a URL through Python. Let’s say we have the URL string which is https://hecodesit.com/ What would be the domain name of this URL? The domain … Read more

## Codewars Python – Integer to Roman conversion

Codewars Python in its 6kyu Kata has given us a problem to convert an integer into the Roman numeral Symbols. In Ancient Roman times, people use Roman numbers instead of integers. Roman numbers We can use the Roman symbol for any number.  For e.g instead of 1, we can use I instead of 2 we … Read more