#algorithms
Read more stories on Hashnode
Articles with this tag
A permutation of integers 1,2,…,n is called beautiful if there are no adjacent elements whose difference is 111. Given nnn, construct a beautiful...
You are given a DNA sequence: a string consisting of characters A, C, G, and T. Your task is to find the longest repetition in the sequence. This is a...
Problem Statement: Consider an algorithm that takes as input a positive integer. If it is even, the algorithm divides it by two, and if it is odd, the...
Hello everyone, I hope you are learning well, In this blog, we shall learn to solve yet another application of the lowest common ancestor of two nodes...
Hello everyone, I hope you are doing well, I am starting this blog for trees where I shall be teaching trees from the very basics to advance, Stay...
we are given a Roman number and we have a dictionary that enlists integer values corresponding to each Roman number. the dictionary is as...