Krantik Chavan has Published 308 Articles

C++ Program to Implement Merge Sort

Krantik Chavan

Krantik Chavan

Updated on 07-Sep-2023 00:49:37

36K+ Views

The merge sort technique is based on divide and conquer technique. We divide the while data set into smaller parts and merge them into a larger piece in sorted order. It is also very effective for worst cases because this algorithm has lower time complexity for worst case also.The complexity ... Read More

Java Program to compare two sets

Krantik Chavan

Krantik Chavan

Updated on 10-Aug-2023 12:59:11

603 Views

The Java Collection Framework provides an interface named Set that extends the Collection interface and serves to store unique elements. It depicts the features of a mathematical set. Hence, it allows all those operations that we can perform on a mathematical set such as union, comparison, intersection and so forth. ... Read More

How to draw a rounded Rectangle on HTML Canvas?

Krantik Chavan

Krantik Chavan

Updated on 16-Dec-2021 09:57:01

2K+ Views

To draw a rectangle in HTML, use the canvas element. With canvas, use the rect() method to draw a rectangle. But, for creating a rounded rectangle, using the rect() method won’t work. We will be using the lineTo() and quadraticCurveTo() method to create a rounded rectangle.This is how you can ... Read More

Animate CSS outline

Krantik Chavan

Krantik Chavan

Updated on 06-Jul-2020 11:53:47

369 Views

To implement animation on outline property with CSS, you can try to run the following code:ExampleLive Demo                    div {             width: 550px;             height: 350px;             outline: 1px solid blue;             animation: myanim 3s infinite;          }          @keyframes myanim {             50% {                outline: 10px dashed orange;             }          }                     CSS outline property          

Usage of CSS align-content property flex-start value

Krantik Chavan

Krantik Chavan

Updated on 04-Jul-2020 06:16:07

86 Views

Use the align-content property with value flex-start to set the flex lines in the beginning.ExampleYou can try to run the following code to implement the flex-start value −Live Demo                    .mycontainer {             display: flex; ... Read More

Arrow to the top of the tooltip with CSS

Krantik Chavan

Krantik Chavan

Updated on 02-Jul-2020 14:02:26

879 Views

Use the bottom CSS property to add arrow to the top of the tooltip.ExampleYou can try to run the following code to add a tooltip with arrow to the top:Live Demo           .mytooltip .mytext {          visibility: hidden;          width: ... Read More

CSS Transition property

Krantik Chavan

Krantik Chavan

Updated on 02-Jul-2020 09:18:48

215 Views

Use the CSS transition property to set all the four transition properties into a single line. You can try to run the following code to work with the transition property −ExampleLive Demo                    div {           ... Read More

Roll In Animation Effect with CSS

Krantik Chavan

Krantik Chavan

Updated on 29-Jun-2020 07:05:37

570 Views

To create a roll in animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;       ... Read More

Get the class name for various objects in Java

Krantik Chavan

Krantik Chavan

Updated on 29-Jun-2020 06:45:23

133 Views

The getName() method is used to get the names of the entities such as interface, class, array class, void etc. that are represented by the class objects. These names are returned in the form of a string. The getPackage() method gets the package for the given class.A program that gets ... Read More

Python object serialization (Pickle)

Krantik Chavan

Krantik Chavan

Updated on 27-Jun-2020 15:00:01

775 Views

The term object serialization refers to process of converting state of an object into byte stream. Once created, this byte stream can further be stored in a file or transmitted via sockets etc. On the other hand reconstructing the object from the byte stream is called deserialization.Python’s terminology for serialization ... Read More

1 2 3 4 5 ... 31 Next
Advertisements