Samual Sam has Published 2664 Articles

Sliding Window Protocol

Samual Sam

Samual Sam

Updated on 31-Oct-2023 14:40:16

62K+ Views

Sliding window protocols are data link layer protocols for reliable and sequential delivery of data frames. The sliding window is also used in Transmission Control Protocol.In this protocol, multiple frames can be sent by a sender at a time before receiving an acknowledgment from the receiver. The term sliding window ... Read More

Medium Access Control Sublayer (MAC sublayer)

Samual Sam

Samual Sam

Updated on 31-Oct-2023 13:25:34

65K+ Views

The medium access control (MAC) is a sublayer of the data link layer of the open system interconnections (OSI) reference model for data transmission. It is responsible for flow control and multiplexing for transmission medium. It controls the transmission of data packets via remotely shared channels. It sends data over ... Read More

How to pop the first element from a C# List?

Samual Sam

Samual Sam

Updated on 31-Oct-2023 04:01:30

23K+ Views

To pop the first element in the list, use the RemoveAt() method. It eliminates the element from the position you want to remove the element.Set the listList myList = new List() {    "Operating System",    "Computer Networks",    "Compiler Design" };Now pop the first element using RemoveAt(0)myList.RemoveAt(0);Let us see ... Read More

Add packages to Anaconda environment in Python

Samual Sam

Samual Sam

Updated on 31-Oct-2023 03:51:13

20K+ Views

There are multiple ways by which we can add packages to our existing anaconda environment.Method 1 − One common approach is to use the “Anaconda Navigator” to add packages to our anaconda environment. Once “Ananconda Navigator” is opened, home page will look something like −Go to Environments tab just below ... Read More

How to set text font family in HTML?

Samual Sam

Samual Sam

Updated on 31-Oct-2023 03:43:24

22K+ Views

To change the text font family in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML tag, with the CSS property font-family. HTML5 do not support the tag, so the CSS style is used to ... Read More

Java Program to convert from decimal to binary

Samual Sam

Samual Sam

Updated on 26-Oct-2023 03:26:44

20K+ Views

To convert decimal to binary, Java has a method Integer.toBinaryString(). The method returns a string representation of the integer argument as an unsigned integer in base 2.Let us first declare and initialize an integer variable.int dec = 25;Convert it to binary.String bin = Integer.toBinaryString(dec);Now display the “bin” string, which consists ... Read More

Concatenate string to an int value in Java

Samual Sam

Samual Sam

Updated on 22-Oct-2023 03:25:06

23K+ Views

To concatenate a string to an int value, use the concatenation operator.Here is our int.int val = 3;Now, to concatenate a string, you need to declare a string and use the + operator.String str = "Demo" + val;Let us now see another example.Example Live Demoimport java.util.Random; public class Demo {   ... Read More

Asymptotic Notations

Samual Sam

Samual Sam

Updated on 21-Oct-2023 13:35:37

24K+ Views

Asymptotic NotationsAsymptotic notations are used to represent the complexities of algorithms for asymptotic analysis. These notations are mathematical tools to represent the complexities. There are three notations that are commonly used.Big Oh NotationBig-Oh (O) notation gives an upper bound for a function f(n) to within a constant factor.We write f(n) ... Read More

How to find Min/Max numbers in a java array?

Samual Sam

Samual Sam

Updated on 07-Oct-2023 02:52:33

24K+ Views

You can find the minimum and maximum values of an array using for loops −ExampleLive Demopublic class MinAndMax {    public int max(int [] array) {       int max = 0;             for(int i=0; imax) {             max = array[i];          }       }       return max;    }    public int min(int [] array) {       int min = array[0];             for(int i=0; i

Convert a String to Uppercase in C

Samual Sam

Samual Sam

Updated on 04-Oct-2023 14:05:42

26K+ Views

Here is the program to convert a string to uppercase in C language,Example#include #include int main() {    char s[100];    int i;    printf("Enter a string : ");    gets(s);    for (i = 0; s[i]!='\0'; i++) {       if(s[i] >= 'a' && s[i] = 'a' && s[i]

Advertisements