Array Partition I in Python

Sunidhi Bansal
Updated on 03-Nov-2022 06:30:54

2K+ Views

We are given the array, let's say arr[] of 2n integers. We have to make the pair group of the integer elements like(a1, b1), (a2, b2)....(an, bn) which makes the sum of min(ai, bi) for all elements in the array as large as possible. The task is to find the maximum sum of pairs For example arr[] = [1, 2, 3, 4] and output is 4 the maximum sum of pairs is 4. The all possible are − (1, 2) and (3, 4) -> min(1, 2) + min(3, 4) = 1 + 3 = 4. (1, 4) and (2, 3) ... Read More

Python Challenges to Develop Your Skills

Sunidhi Bansal
Updated on 03-Nov-2022 06:24:16

326 Views

As you know Python is ranked in topmost used programming language. Python programming language is easy to learn and easy to use. If you know the basics of python you can develop some easy projects like the TIC TAC TOE game and also you can enroll in easy python coding challenges. These coding challenges will help you to improve your coding logics and if you are an intermediate level python programmer you can take a python challenge to enhance your python skills to become a professional or experienced python programmer. Some python programming challenges for beginners. 1. Basic calculator. Basic ... Read More

Toggle Between Like and Dislike Button with CSS and JavaScript

Vivek Verma
Updated on 02-Nov-2022 10:52:20

2K+ Views

The toggle between one button to another button means it allows the user to switch one window to another window, it allows to turn on and off a function, allows to change settings, and provides much more functionality. But in this article we have to write a program with the use of CSS and JavaScript to toggle between like and dislike buttons. To do so, let’s create three separate files for HTML, CSS, and JavaScript − HTML file(index.html) The HTML file is required to create buttons, headings, tags, etc. The HTML file must be saved using the .html file extension. ... Read More

Convert Array to JSON in JavaScript

Vivek Verma
Updated on 02-Nov-2022 10:47:32

2K+ Views

An array is a special object in JavaScript, that stores multiple types of values which means that it can store an integer value, string value, or float value simultaneously. There are various ways to create an array in JavaScript, following is the syntax to do so − var array = [value1, value2, value3, …]; or var array = new Array(size); or var array = new Array(element1, element2, …); Where the value is the elements of the array so it can be of any type. The JSON is an object notation in JavaScript that is used to represent structured data ... Read More

Create Custom Range Sliders with CSS and JavaScript

Vivek Verma
Updated on 02-Nov-2022 10:33:12

928 Views

A range slider, is an input field in HTML, that accepts the type as a “range”. It is used to select a numeric value within the given specific range, we can pass the range inside the input field as shown below snippet of code As you can see in the above snippet of code, the type is equal to the range and we provide the min = “0” and max = “100” values, which will be the range of the field. The custom range sliders help customize the field range as per the need. In the following article, ... Read More

What is Grounding Conductor and How to Calculate Its Size

Manish Kumar Saini
Updated on 02-Nov-2022 07:30:18

5K+ Views

Grounding, also called earthing, is defined as a process of connecting non-current carrying parts like metallic frame of electrical device or some electrical parts of power system like neutral point of a star-connected system to earth or ground. The main purpose of doing grounding in electrical systems is to prevent accidents and damage to the equipment of the system. In this article, we shall discuss about grounding conductor and how to calculate right size of the grounding conductor according to the requirement What is a Grounding Conductor? A wire or conductor in an electrical system which is intentionally connected to ... Read More

What is Voltage: Definition, Formula, Unit, Types and Methods of Measurement

Manish Kumar Saini
Updated on 02-Nov-2022 06:51:26

9K+ Views

What is Voltage? Voltage, also called potential difference, electric pressure or electric tension, is defined as the difference of electric potentials of two points in an electric circuit. In other words, the amount of energy required to move an electric charge from one point to another in an electric circuit is called voltage. Voltage is denoted by the symbol V or v, where V is used to represent a constant voltage, while v is used to represent a time-varying voltage. In this article, we will learn all about voltage, and the methods used for measuring the voltage in an electric ... Read More

Permeance: Definition, Formula, Units, Coefficient, and Example

Manish Kumar Saini
Updated on 02-Nov-2022 06:48:06

3K+ Views

In this article, we shall learn about Permeance in magnetic circuits, its definition, formula, unit of measurement, and coefficient. What is Permeance? The measure of the ease with which the magnetic flux can flow through a magnetic material is called Permeance. It is denoted by the symbol P and given by the following expression, $$\mathrm{Permeance, \, P=\frac{1}{Reluctance}\: \: \cdot \cdot \cdot \left ( 1 \right )}$$ Hence, the Permeance may also be defined as the reciprocal of magnetic reluctance. Where, magnetic reluctance is the measure of opposition that a magnetic material or a magnetic circuit offers in the path of ... Read More

Electricity Generation, Transmission, Distribution, and Utilization

Manish Kumar Saini
Updated on 02-Nov-2022 06:44:05

6K+ Views

Energy is required to perform many functions in day-to-day life. Energy exists in different forms in nature, but the most important form of energy is electrical energy (or electricity). As we can experience, electricity has become an integral part of our life because without electricity we cannot imagine our life. This article is meant for explaining the concept of electricity, its generation, transmission, distribution, and utilization. What is Electricity? Electricity is a form of energy that is a result of subatomic charged particles like electrons, protons, etc. Electricity is one of the major inventions that changed human civilization. In today’s ... Read More

SWR Meter: What Is It and How to Use It

Manish Kumar Saini
Updated on 02-Nov-2022 06:33:42

3K+ Views

What is SWR Meter? SWR meter stands for Standing Wave Ratio meter, it is a measuring instrument used to measure the standing wave ratio (SWR) in a transmission line or transmitter feeder. It is also known as VSWR or ISWR. There are different types of SWR meters available, however, the working principle of all the SWR meters is the same. In this article, we will discuss the SWR meter along with its working and applications. The SWR meter measures the degree of mismatch between a transmitter feeder and its antenna (load). This measurement is used to know the effectiveness ... Read More

Advertisements