Chandu yadav has Published 1163 Articles

Babylonian method to find the square root

Chandu yadav

Chandu yadav

Updated on 17-Jun-2020 09:20:17

3K+ Views

The Babylonian method to find square root is based on one of the numerical method, which is based on the Newton- Raphson method for solving non-linear equations.The idea is simple, starting from an arbitrary value of x, and y as 1, we can simply get next approximation of root by ... Read More

Secant method to solve non-linear equation

Chandu yadav

Chandu yadav

Updated on 17-Jun-2020 08:55:00

1K+ Views

Secant method is also used to solve non-linear equations. This method is similar to the Newton-Raphson method, but here we do not need to find the differentiation of the function f(x). Only using f(x), we can find f’(x) numerically by using Newton’s Divide difference formula. From the Newton-Raphson formula, we ... Read More

Shortest Common Super Sequence

Chandu yadav

Chandu yadav

Updated on 17-Jun-2020 08:09:32

176 Views

Shortest common super-sequence is a sequence where each element of both of the given sequences is present. In other words, we can say that the given two strings, both are sub-sequence of Shortest Common Super-Sequence.When there are no common characters in two strings, then we can simply concatenate them to ... Read More

Maximum profit by buying and selling a share at most twice

Chandu yadav

Chandu yadav

Updated on 17-Jun-2020 07:07:12

337 Views

In a trading, one buyer buys and sells the shares, at morning and the evening respectively. If at most two transactions are allowed in a day. The second transaction can only start after the first one is completed. If stock prices are given, then find the maximum profit that the ... Read More

Min Cost Path

Chandu yadav

Chandu yadav

Updated on 17-Jun-2020 06:57:58

491 Views

A matrix of the different cost is given. Also, the destination cell is provided. We have to find minimum cost path to reach the destination cell from the starting cell (0, 0).Each cell of the matrix represents the cost to traverse through that cell. From a cell, we cannot move anywhere, ... Read More

Generate Fibonacci Series

Chandu yadav

Chandu yadav

Updated on 16-Jun-2020 15:49:35

1K+ Views

The Fibonacci sequence is like this, 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ……In this sequence, the nth term is the sum of (n-1)'th and (n-2)'th terms.To generate we can use the recursive approach, but in dynamic programming, the procedure is simpler. It can store all ... Read More

Fleury’s Algorithm

Chandu yadav

Chandu yadav

Updated on 16-Jun-2020 12:47:09

6K+ Views

Fleury’s Algorithm is used to display the Euler path or Euler circuit from a given graph. In this algorithm, starting from one edge, it tries to move other adjacent vertices by removing the previous vertices. Using this trick, the graph becomes simpler in each step to find the Euler path ... Read More

Center tabs in Bootstrap

Chandu yadav

Chandu yadav

Updated on 15-Jun-2020 07:35:21

744 Views

Use the .nav-justified class in Bootstrap to center tabs in Bootstrap.You can try to run the following code to center tabs −ExampleLive Demo           Bootstrap Example                                          Web Development          The following are the web dev technologies:                       HTML5             jQuery             JavaScript             Ajax             ES6                    

Disable a dropdown item with Bootstrap

Chandu yadav

Chandu yadav

Updated on 15-Jun-2020 07:21:37

5K+ Views

To disable to dropdown item in Bootstrap, use the .disabled class with the .dropdown-menu class.You can try to run the following code to disable dropdown item −ExampleLive Demo           Bootstrap Example                                          Beverages          The following are the beverages available in India:                       Beverages                                        Gatorade                Sting                Red Bull                Pepsi                Coca Cola                                

Remove default list-style in Bootstrap

Chandu yadav

Chandu yadav

Updated on 15-Jun-2020 07:13:10

22K+ Views

To remove the list styles in Bootstrap, use the .list-unstyled class.You can try to run the following code to implement the .list-unstyled class −ExampleLive Demo           Bootstrap Example                                          Technologies                       Home             PHP             Java             jQuery             JavaScript             Ruby                                Technologies (Unstyled)                       Home             PHP             Java             jQuery             JavaScript             Ruby                    

Advertisements