Arnab Chakraborty has Published 4293 Articles

Flip-flop types and their Conversion in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 07:41:03

2K+ Views

Flip-Flops are sequential digital circuits. There are few different types of flip-flops. Here we will see the types of flip-flops and the conversion rules from one flip-flop to another.There are basically four types of flip-flops −SR Flip-FlopD Flip-FlopJK Flip-FlopT Flip-FlopSR Flip-flopSR flip-flop operates with only positive clock transitions or negative ... Read More

Finding Quadrant of a Coordinate with respect to a Circle in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 07:26:16

244 Views

We have one circle (center coordinate and radius), we have to find the quadrant of another given point (x, y) lies with respect to the center of the circle, if this is present in the circle, print quadrant, otherwise print error as the point is present outside.Suppose the center of ... Read More

Find Simple Closed Path for a given set of points in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 07:21:48

338 Views

Consider we have a set of points. We have to find a simple closed path covering all points. Suppose the points are like below, and the next image is making a closed path on those points.To get the path, we have to follow these steps −Find the bottom left point ... Read More

Find minimum and maximum elements in singly Circular Linked List in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 07:14:25

482 Views

Here we will see how to get the minimum and maximum value from one singly circular linked linear list. The basic concept is very simple. The next part of the last node will be pointed to the first node, the first node will also be pointed using start pointer. When ... Read More

Find K Closest Points to the Origin in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 07:05:18

349 Views

Suppose we have a set of points. Our task is to find K points which are closest to the origin. Suppose the points are (3, 3), (5, -1) and (-2, 4). Then the closest two (K = 2) points are (3, 3), (-2, 4).To solve this problem, we will sort ... Read More

Minimize Cash Flow among a given set of friends who have borrowed money from each other in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 06:59:30

1K+ Views

Suppose there are few friends. They have borrowed money from each other. So there will be some cash flow on the network. Our task is to minimize the cash flow in the network. Suppose there are three friends P1, P2, and P3. The cash flow among them is like below ... Read More

Check if a number is Palindrome in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 06:53:53

707 Views

Here we will see, how to check whether a number is a palindrome or not. The palindrome numbers are the same in both directions. For example, a number 12321 is a palindrome, but 12345 is not a palindrome.The logic is very straight forward. We have to reverse the number, and ... Read More

Check if a point is inside, outside or on the parabola in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 06:45:39

367 Views

Suppose, one parabola is given (the vertex coordinate (h, k) and distance from focus and vertex is a), another point is also given. We have to find whether the point is inside the parabola or not. To solve it, we have to solve the following equation for the given point ... Read More

Check if a point is inside, outside or on the ellipse in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 06:42:15

766 Views

Suppose, one ellipse is given (the center coordinate (h, k) and semi-major axis a, and semi-minor axis b), another point is also given. We have to find whether the point is inside the ellipse or not. To solve it, we have to solve the following equation for the given point ... Read More

Check if a number is power of k using base changing methods in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 22-Oct-2019 06:39:10

218 Views

Here we will see a program, if one number is given, another value k is also given, we have to check whether the number is power of k or not. But we have to perform the base changing method to solve this problem. Suppose a number is 27, and k ... Read More

Advertisements