JCJitesh Chawlainjitesh.hashnode.dev·Aug 8, 2022 · 4 min readEditorial: Codeforces 1666L: LabyrinthProblem Link: https://codeforces.com/problemset/problem/1666/L This Problem has various ways to solve but today I am going to talk about the ways which help you understand the important technique which will help you in various graph problems. In thi...00
JCJitesh Chawlainjitesh.hashnode.dev·Jan 12, 2021 · 3 min readChinese Remainder TheoremWe have Two arrays ans[0,1,----(n-1)] and rem[0,1,----(n-1)]. We have to find minimum value of x such that x%ans[0] = rem[0], x%ans[1] = rem[1], and so on. Chinese Remainder Theorem states that there always exist x which satisfy the given congruenc...00
JCJitesh Chawlainjitesh.hashnode.dev·Dec 17, 2020 · 2 min readFinding the Prime number in sqrt(n) ComplexityThe major approach to finding the prime number is running the loop from 2 to n and check whether it divides the number or not. The complexity of that solution is O(n). In this article, We will be discussing how to find the prime number in O(sqrt(n))c...00
JCJitesh Chawlainjitesh.hashnode.dev·Dec 17, 2020 · 2 min readLinear Diphotine EquationIn this equation, we make an equation in terms of x and y and we input a,b, and c in which a is the coefficient of x, b is the coefficient of y and c is a term that is equal to it ax+by = c This helps us to determine whether there is any possible so...01V
JCJitesh Chawlainjitesh.hashnode.dev·Dec 5, 2020 · 3 min readWhat is NPM?NPM stands for the Node Package Manager. It is responsible for handling the dependencies required for the node. It helps to install modules/packages on your system. Installation You should have node.js installed in your system. Npm is pre-installed ...00