Length of largest subarray of Fibonacci Numbers

Given an array arr[] of integer elements, the task is to find the length of the largest sub-array of arr[] such that all the elements of the sub-array are Fibonacci numbers. Examples: Input: arr[] = { 4, 2, 3, 4, 5, 8, 11 } Output: 2 Explanation: Maximum length sub-array with all elements as Fibonacci number is {2,… Read More »

Python Program to Swap String Case Without Using swapcase()

Generally, we use swapcase() to swap strings in Python. What if we are asked to do swapping without using the method. In this article, I will be sharing python program to swap upper case letters to lower case and vice versa in the same string. Examples: Input: “w3ColLeges” Output: “W3cOLlEGES” Input: “W3cOlLegEs OrG” Output: “w3CoLlEgEs oRg” Some  letters… Read More »

Advantages and disadvantages of UDP

User Diagram Protocol (UDP) may be a connectionless protocol that’s located in between application layer and IP layer. It’s mainly used for broadcasting messages over a network. aside from that it acts as an intermediary between the applications and therefore the network operations. Functioning of UDP is completed almost almost like TCP. Although UDP exhibits numerous benefits it’s… Read More »

Advantages and disadvantages of TCP

Transmission Control Protocol (TCP) may be a sort of communication protocol that interconnects different networking devices. It is the essential way of how applications are getting to communicate across a network (Allowing communication over large distances). Examples for them are TCP/IP, HTTP, HTTPS and FTP. The TCP has the potential to supply reliable and end-to-end byte stream. These… Read More »

Advantages and disadvantages of Barcode Reader

Barcode reader may be a sort of scanner device that reads dark and white bars which contains pieces of data (Descriptive data of numbers and letters). It basically works using the electro-optical principle. Barcode reader is formed from 3 parts. Those are the converter, decoder and therefore the illuminator. Depending on the goal, there are differing types of… Read More »