Generator Random Numbers

Generator Random Numbers is a tool that generates Random numbers given maximum and minimum. For example, if we want to generate a number between 0 to 10, The Random Generator Will Give a random number between 0 to 10. Today we will write code in Python and C++ to develop the Random Numbers Generator. Why … Read more

What is Enumeration in Python

If you are a programmer, you may have seen this question. What is Enumeration in Python? A data collection object is transformed into an enumerate object using the enumerate function in Python. Enumerate produces an object with a counter serving as a key for each value in the object, making it simpler to retrieve the … Read more

Alphabet Rangoli

We came across a coding problem today on Hackerrank called Alphabet Rangoli. We need to solve this in Python. The link of the problem on HackerRank is Here: Link Problem Statement You are given an integer, Your task is to print an alphabet rangoli of size. (Rangoli is a form of Indian folk art based … Read more

Python Check Subset

A Python Check Subset is a function we will write in Python to find if a given list is a subset of another given list. We will discuss the code in detail. What is Subset? A set whose components are all contained within another set. Wikipedia If A and B are sets and every element of A is also an element of B, then: … Read more

Longest Common Sequence Leetcode

We are going to solve a Hard coding Problem longest common sequence leetcode. LeetCode Link of the Problem is HERE. It is one of the most difficult sequence finding tasks on leetcode. We have tried to Solve this in Python3. Question Given two strings text1 and text2, you have to return the length of their longest common subsequence leetcode. If there … Read more

Container With Most Water – LeetCode Solutions

LeetCode has a Medium coding Problem in Its’ Algorithm Section “Container With Most Water”. Today We are going to solve this problem in Python. LeetCode Link of the Problem is HERE Question You are given an integer array height of length n. There are n vertical lines are drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]). Find … Read more

Letter Combinations of a Phone Number – LeetCode Solutions

LeetCode has a Medium coding Problem in Its’ Algorithm Section “Letter Combinations of a Phone Number”. Today We are going to solve this problem in Python. LeetCode Link of the Problem is HERE Question Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. … Read more

Pow(x n) LeetCode – Python Solutions

LeetCode has a Medium coding Problem in Its’ Algorithm Section “Pow(x n) LeetCode”. Today We are going to solve this problem in Python. LeetCode Link of the Problem is HERE Question Implement pow(x, n), which calculates x raised to the power n (i.e., xn). Examples Input: x = 2.00000, n = 10 Output: 1024.00000 Input: x = 2.10000, n = 3 … Read more