Codegyan has Published 19 Answers

What is Kubernetes? How a Kubernetes Scheduler Work?

Updated on 03-Aug-2023 13:13:51

Introduction Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. One of the critical components of Kubernetes is the scheduler, which assigns pods to nodes based on resource availability and user-defined constraints. In this article, we will explore how the Kubernetes scheduler works, including the scheduling process, scheduling algorithms, and configuration options. The Scheduling Process Before divi... Read More

What are the Different Types of Multimedia Network?

Updated on 17-Apr-2023 22:34:54

Multimedia networks refer to networks that are designed to support the transfer of various forms of multimedia, including audio, video, and images, among others. These networks play an important role in modern communication and entertainment, facilitating the transfer of information and media across different devices and platforms. There are several types of multimedia networks, each with its own advantages and disadvantages. In this article, we will explore the different types of multimedia net... Read More

How To Reduce the Array to 0 by decreasing elements by 1 or replacing at most K elements by 0

Updated on 14-Nov-2022 19:30:10

Given an array arr[ ] of N integers and a positive integer K, the task is to find the minimum number of operations required to reduce all array elements to 0 such that in each operation reduce any array element by 1 and independently at most K array element can be reduced to 0. Examples: Input: arr[ ] = {4, 1, 5}, K = 1 Output: 5 Explanation: Following are the operations performed to convert all array elements to 0: Here K = 1, So replace arr[2] by 0, converts arr[v] to {... Read More

How to Install Jenkins on Ubuntu

Updated on 28-Mar-2022 17:52:44

Jenkins is a software package for software developers. It’s used to automate parts of the testing, build, delivery, and deployment of software. This guide will help you install Jenkins on an Ubuntu 18.04 system. Prerequisites A system running Ubuntu 18.04 Bionic Beaver A user account with sudo privileges Access to a terminal window / command line (CTRL+ALT+T or search > terminal) Java 8 or 11 A Brief Note on Jenkins Jenkins is a CI/CD software platform tha... Read More

Write PHP Program To Check Prime Number

Updated on 16-Mar-2022 8:40:06

PHP Program To Check Prime Number : The below program checks if a number is a prime or a composite number. The PHP echo statement is used to output the result on the screen. Example <!DOCTYPE html> <html> <body>   <?php $num = 13; $count=0; for ( $i=1; $i<=$num; $i++){ if (($num%$i)==0){ $count++; } } if ($count<3){ echo "$num is a prime number."; } else{ echo "$num is not a pri... Read More

How to convert temperature from degree centigrade to Fahrenheit using C

Updated on 12-Dec-2021 9:21:47

C Program to convert temperature from degree centigrade to Fahrenheit #include <stdio.h> int main() { float celsius, fahrenheit; printf("\nEnter temp in Celsius : "); scanf("%f", &celsius); fahrenheit = (1.8 * celsius) + 32; printf("\nTemperature in Fahrenheit : %f ", fahrenheit); return (0); } Output Enter temp in Celsius : 32 Temperature in Fahrenheit : 89.59998 ... Read More

How to find area and circumference of circle using C Programming

Updated on 12-Apr-2023 18:11:54

C Program to find area and circumference of circle #include <stdio.h> int main() { int rad; float PI = 3.14, area, ci; printf("\nEnter radius of circle: "); scanf("%d", &rad); area = PI * rad * rad; printf("\nArea of circle : %f ", area); ci = 2 * PI * rad; printf("\nCircumference : %f ", ci); return (0); } Output : Enter radius of a circle : 1 Area of circle : 3.14 Circumference : 6.28 Explanation of Program : In this program we have to calculate ... Read More

How to find gretest in 3 number using C Programming

Updated on 12-Dec-2021 9:00:53

C Program to find greatest in 3 numbers #include <stdio.h> int main() { int a, b, c; printf("\nEnter value of a, b & c : "); scanf("%d %d %d", &a, &b, &c); if ((a > b) && (a > c)) printf("\na is greatest"); if ((b > c) && (b > a)) printf("\nb is greatest"); if ((c > a) && (c > b)) printf("\nc is greatest"); return(0); } Output : Enter value for a,b & c : 15 17 21 c is greatest ... Read More

How to find sum of two numbers using C Language

Updated on 12-Dec-2021 9:06:20

C program to find sum of two numbers #include <stdio.h> int main() { int a, b, sum; printf("\nEnter two no: "); scanf("%d %d", &a, &b); sum = a + b; printf("Sum : %d", sum); return(0); } Output: Enter two no: 5 6 Sum : 11 ... Read More

How To Send mail from your Gmail account using Python

Updated on 22-Nov-2021 22:09:23

Here, we are going to learn how to send a simple basic mail using Python code. Python, being a powerful language don’t need any external library to import and offers a native library to send emails- “SMTP lib”. “smtplib” creates a Simple Mail Transfer Protocol client session object which is used to send emails to any valid email id on the internet. Different websites use different port numbers. In this article, we are using a Gmail account to send a mail. Port number used here is �... Read More

1 2 Next
Advertisements

ads