Articles on Trending Technologies

Technical articles with clear explanations and examples

Sort a string without altering the position of vowels

Prabhdeep Singh
Prabhdeep Singh
Updated on 11-Jul-2023 701 Views

Sorting a string means we have to arrange a given string either in an ascending or descending order or any given order. In this problem given a string 'str' of size n. Our aim is to sort the given string without altering means without changing the position of vowels present in the string. Let's see examples with explanations below to understand the problem in a better way. Sample Examples Input 1 str = “abdecokfee” Output 1 abcedofkee Explanation Constant present in the string = bdckf Sort the constant string = bcdfk Merge the given string with the sorted instant string ...

Read More

Maximum Number of 0s Placed Consecutively at the Start and End in any Rotation of a Binary String

Prabhdeep Singh
Prabhdeep Singh
Updated on 11-Jul-2023 278 Views

Binary string means the string contains only two types of char either 1 or 0. It is known as base 2. In this problem, we have given a binary string str and also the size of the string 'n'. Our task is to find the maximum number of zeros places consecutively at the start and end of any rotation of a binary string. Let's see examples with explanations below to understand the problem in a better way. Sample Example Input 1 str = “101001, n = 6 Output 1 2 Explanation The string can be rotated in any of the ...

Read More

C++ Program for Left Rotation and Right Rotation of a String

Prabhdeep Singh
Prabhdeep Singh
Updated on 11-Jul-2023 1K+ Views

Rotation means we have to shift each character forward or backward direction. In the case of forward, the last character is forwarded to the index 0 also known as right rotation. In the case of backward first character at index 0 is backward to the last index also known as left rotation. In this problem, we have given a string of characters and integer d. Our task is to print the left rotated string or right rotated string by d integer. Only the permutation of the current string changes, not the length or frequency of the characters in the ...

Read More

Java Program for Left Rotation and Right Rotation of a String

Prabhdeep Singh
Prabhdeep Singh
Updated on 11-Jul-2023 3K+ Views

Rotation means we have to shift each character either in a forward direction or backward direction. Forward direction means right rotation (Or anticlockwise) and backward direction means left rotation (Or clockwise). In this problem, we have given a string of characters of size n and integer d. Here d is less than n. Our task is to print the left rotated string or right rotated string by d integer. Only the permutation of the current string changes, not the length or frequency of the characters in the given string. Input 1 str = “apple”, d = 2 Output 1 Left ...

Read More

Difference Between DSL and U-Verse

Md. Sajid
Md. Sajid
Updated on 10-Jul-2023 739 Views

AT&T offers two types of internet services: DSL (digital subscriber line) and U-Verse. DSL is an older technology that uses existing telephone lines to provide internet connectivity, whereas U-Verse is a newer technology that delivers internet, TV, and phone services through fibre optic cables. Read this article to find out more about DSL and U-Verse and how they are different from each other. What is DSL? DSL is an abbreviation for Digital Subscriber Line, a technology that delivers high-speed internet access over existing telephone lines. DSL technology divides the available frequencies on a telephone line into separate channels, one for ...

Read More

Difference Between CVS and SVN

Md. Sajid
Md. Sajid
Updated on 10-Jul-2023 915 Views

CVS (Concurrent Version System) and SVN (Subversion) are both version control systems that are commonly used in software development projects to manage source code and other files. SVN is widely considered a more modern and advanced version control system than CVS. SVN supports branching and merging, atomic commits, and is more suitable for larger repositories. Read this article to find out more about CVS and SVN and how they are different from each other. What is CVS? CVS (Concurrent Versions System) is a centralized version control system that was widely used in the software development industry prior to the introduction ...

Read More

Difference Between Analog Tuner and Digital Tuner

Md. Sajid
Md. Sajid
Updated on 10-Jul-2023 5K+ Views

Tuners used in electrical devices to tune in to radio or television broadcasts are classified as analog or digital. A continuous waveform with varying amplitude and frequency is received and processed by an analog tuner. A digital tuner receives and processes a digital signal, which is a discrete signal consisting of 0s and 1s. Read this article to find out more about Analog Tuner and Digital Tuner and how they are different from each other. What are Analog Tuners? An analog tuner is a device that receives and tunes radio or television signals. It works by selecting a frequency from ...

Read More

Difference Between Amps and Watts

Md. Sajid
Md. Sajid
Updated on 10-Jul-2023 1K+ Views

In the world of electricity, Amps and Watts are two important units of measurement. Despite their similarities, they represent various features of electrical energy. Watt (W) is the power measuring unit. It calculates the amount of energy transferred in one unit of time. Amperes (amps) measure the flow of electricity, whereas Watts measure the rate at which that electricity is used. Read this article to find out more about Amps and Watts and how they are different from each other. What is Amps? The ampere, typically abbreviated as "amp, " is a unit of measurement for electric current named for ...

Read More

Difference Between ACL and IDEA

Md. Sajid
Md. Sajid
Updated on 10-Jul-2023 1K+ Views

The terms ACL (Access Control List) and IDEA (International Data Encryption Algorithm) are frequently used in computer networking and cryptography. ACL is a technique for controlling resource access, whereas IDEA is an encryption algorithm for data security. Read this article to find out more about ACL and IDEA and how they are different from each other. What is ACL? ACL is a security mechanism that controls network resource access. It is a collection of permissions attached to an object, such as a file or a network share, that determines which people or groups can access the object and to what extent. ...

Read More

Difference Between ACH and Wire Transfer

Md. Sajid
Md. Sajid
Updated on 10-Jul-2023 834 Views

ACH (Automated Clearing House) and Wire Transfers are both methods of electronically sending money, although they differ in several key ways. Electronic money transfers between banks that use the Automated Clearing House network are known as ACH transfers. Wire transfers are individual electronic money transfers that are transmitted directly from one bank account to another. Read this article to find out more about ACH and Wire Transfer and how they are different from each other. What is ACH? The ACH (Automated Clearing House) system is a type of electronic funds transfer system that is used in the United States for ...

Read More
Showing 36111–36120 of 61,298 articles
Advertisements