AEAbrar Eyasirineyasir2047.hashnode.dev·Apr 21, 2025 · 2 min readPermutation of a StringWhen dealing with permutations of a string, one common issue arises: duplicates. For example, with input like "AAB", the total number of permutations would be 6 (3!), but many of them would be repeated. We aim to generate all unique permutations in l...00
AEAbrar Eyasirineyasir2047.hashnode.dev·Jul 2, 2024 · 1 min readNumber of Divisors Using Prime FactorizationQuestion: Given a positive integer n, we must find the total number of divisors for n. Let d( n ) be the number of divisors for the natural number, n. We begin by writing the number as a product of prime factors: n = p^a* q^b* r ^c … then the number ...00
AEAbrar Eyasirineyasir2047.hashnode.dev·Apr 11, 2024 · 7 min readEverything I know about Competitive ProgrammingCompetitive programming, also known as CP, is a mind game. There will be given a problem statement, some inputs, and their outputs with additional constraints like time and space constraints. You have to solve this problem efficiently. If your coder ...00