We have discussed below methods to find root in set 1 and set 2 Here f(x) represents algebraic or transcendental equation.įor simplicity, we have assumed that derivative of function is also provided as input.Įxample: Input: A function of x (for example x 3 – x 2 + 2),ĭerivative function of x (3x 2 – 2x for above example) Given a function f(x) on floating number x and an initial guess for root, find root of function in interval. Set in C++ Standard Template Library (STL).Write a program to print all permutations of a given string.Median of Stream of Running Integers using STL.Median in a stream of integers (running integers).Longest Increasing Subsequence Size (N log N).Maximum size square sub-matrix with all 1s.Maximum size rectangle binary sub-matrix with all 1s.Print unique rows in a given Binary matrix.Rotate a matrix by 90 degree in clockwise direction without using any extra space.Rotate a matrix by 90 degree without using any extra space | Set 2.Inplace rotate square matrix by 90 degrees | Set 1.Print a given matrix in counter-clock wise spiral form.Mathematics | Eigen Values and Eigen Vectors.Mathematics | System of Linear Equations.Mathematics | L U Decomposition of a System of Linear Equations.Gaussian Elimination to Solve Linear Equations.Program for Gauss-Jordan Elimination Method.Program to find root of an equations using secant method.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.