#algorithms
Read more stories on Hashnode
Articles with this tag
A tutorial from Quantum Explorer's 2023 by IBM · "Life comes in the concept of optimization since we need to balance everything to maximize happiness!...
A palindrome number is a number whose reverse order is the same as the original number. Even Palindrome: In this the number of elements in the...
A brute force approach is to divide n by each number from 2 to n-1 and if it is divisible then n is "Not Prime" else it is "Prime". However, after √n...
Leetcode Problem No : 1281 · Refer to the problem statement. Algorithm: Let p be the Integer. Step 1: Declare 3 variables i.e. sum = 0, prod = 1,...