Found 27104 Articles for Server Side Programming

Python Program to find minimum number of rotations to obtain actual string?

Adeeba Khan
Updated on 28-Jul-2023 17:50:57

158 Views

Understanding how to effectively handle strings is a fundamental programming task that can considerably enhance the performance of our code. Finding the least amount of rotations necessary to produce the desired string from a rotated string is an intriguing challenge in string manipulation. Situations like text processing, cryptography, and data compression frequently involve this issue. Consider the scenario in which a string is rotated a certain amount to the right. Finding the fewest rotations necessary to transform the string back into its original form is the objective. We can learn more about the string's structure and get access to useful ... Read More

Python program to find maximum uppercase run?

Adeeba Khan
Updated on 28-Jul-2023 17:48:55

188 Views

It is frequently helpful to find and extract patterns or segments of interest while working with strings. Finding the longest string of uppercase letters in each string is a typical problem. Numerous situations, including text processing, data analysis, and even text validation, present this issue. We will investigate two methods—the iterative method and the regular expression method—to solve this issue. These methods offer various methods for locating and extracting the longest uninterrupted sequence of capital letters from a string. We may effectively complete this assignment and learn how to handle related pattern extraction issues in Python by comprehending and putting ... Read More

How to Check an Array is Associative or Sequential in PHP

Pradeep Kumar
Updated on 28-Jul-2023 16:36:59

1K+ Views

What is Associative Array? An associative array is a type of array in which each element is associated with a specific key, rather than being assigned a numeric index like in sequential arrays. In other words, instead of accessing array elements by their position, you access them by using their corresponding keys. In an associative array, the keys can be either strings or integers. Each key is unique within the array, meaning that no two elements can have the same key. The values in an associative array can be of any data type, such as strings, numbers, booleans, ... Read More

How to Change the Maximum Upload file Size in PHP

Pradeep Kumar
Updated on 28-Jul-2023 16:16:09

171 Views

What is PHP? PHP (Hypertext Preprocessor) is a widely used server-side scripting language for web development. It allows developers to embed code within HTML files, enabling the creation of dynamic web pages and interactions with databases. PHP is known for its simplicity, versatility, and extensive integration capabilities with popular databases. It offers a broad range of extensions and has a large community of developers, ensuring ample resources and support. How to change the maximum upload file size in PHP: To change the maximum upload file size in PHP, you need to modify the following configuration settings: ... Read More

The camel case character present in a given string

Thanweera Nourin A V
Updated on 28-Jul-2023 15:54:09

485 Views

The aim of this article is to implement a program to print the number of camel case character present in a given string. As you all know, a string is a collection of characters. Now let us see what camel case letters are. Programming languages like Java utilise a naming style called camel case. That is, It includes entering multi-word identities without spaces or underscores, having the initial word in lowercase with successive words in uppercase. Code written in this manner is easier to read and understand. The inner uppercase letters, which resemble camel humps, are what give the name ... Read More

Program to perform a letter frequency attack on a monoalphabetic substitution cipher

Thanweera Nourin A V
Updated on 28-Jul-2023 15:52:42

777 Views

The challenge is to display the top five probable plain texts which could be decrypted from the supplied monoalphabetic cypher utilizing the letter frequency attack from a string Str with size K representing the given monoalphabetic cypher. Let us see what exactly is frequency attack. The very foundation for frequency analysis is the certainty that specific letters and letter combinations appear with varied frequencies all through any given section of written language. Additionally, matter-of-factly every sample of that language shares a common pattern in the distribution of letters. To make it more clear, The English alphabet has 26 letters, ... Read More

How to Calculate the Difference Between two Dates in PHP?

Pradeep Kumar
Updated on 28-Jul-2023 15:52:22

7K+ Views

What is PHP? PHP (Hypertext Preprocessor) is a widely used server-side scripting language for web development. It allows developers to embed code within HTML files, enabling the creation of dynamic web pages and interactions with databases. PHP is known for its simplicity, versatility, and extensive integration capabilities with popular databases. It offers a broad range of extensions and has a large community of developers, ensuring ample resources and support. Using date_diff() Function In PHP, the date_diff() function is used to calculate the difference between two DateTime objects. It returns a DateInterval object representing the difference between the two dates. ... Read More

Minimum steps to determine the subsequence with max 1s based on given conditions

Thanweera Nourin A V
Updated on 10-Aug-2023 15:56:16

54 Views

The aim of this article is to implement a program to find minimum steps to determine the subsequence with max 1s based on given conditions. So as we all know, a one-dimensional array containing characters that is terminated by a null can be used to define a string. Given is a string Str of length K, wherein K is always even, and contains the characters "0, " "1, " and "?" Divide the string to two separate strings, let's call them Str1 and Str2, each of which is going to include the characters at the even values of Str and ... Read More

Minimize count of repositioning of characters to make all given Strings equal

Thanweera Nourin A V
Updated on 10-Aug-2023 15:48:22

56 Views

The aim here is to determine whether it would be feasible to make all of the strings identical in any amount of operations provided an array Str of strings with size n. Any element can be taken out of the string and put back in at any point in the same or another string all in one action. Return "Yes" if the strings are able to be made to equal one another, and "No" if not, along with the fewest number of operations necessary. Problem Statement Implement a program to minimize count of repositioning of characters to make all given ... Read More

Enumerations in PHP

Pradeep Kumar
Updated on 28-Jul-2023 15:57:26

76 Views

What is PHP? PHP (Hypertext Preprocessor) is a popular scripting language designed for web development. It is widely used for creating dynamic and interactive web pages. PHP code can be embedded directly into HTML, allowing developers to mix PHP and HTML seamlessly. PHP can connect to databases, process form data, generate dynamic content, handle file uploads, interact with servers, and perform various server-side tasks. It supports a wide range of web development frameworks, such as Laravel, Symfony, and CodeIgniter, which provide additional tools and features for building web applications. PHP is an open-source language with a large community, extensive ... Read More

Advertisements