Found 34472 Articles for Programming

AppJar Module in Python

Priya Mishra
Updated on 12-Jul-2023 11:30:03

382 Views

The Python AppJar module simplifies GUI development, which is necessary for designing user-friendly software interfaces. AppJar is one of many tools and frameworks available in Python for creating graphical user interfaces. It simplifies the process of developing GUI apps by providing a user-friendly interface. AppJar comes with a variety of pre-built widgets such as buttons, labels, text boxes, and dropdown menus. This article digs into AppJar's capabilities and features, providing examples and insights. What is an AppJar Module? The AppJar module is a refined and user-friendly toolkit that makes designing Graphical User Interfaces (GUIs) in Python easier. ... Read More

PHP Program for Converting Roman Numerals to Decimal Lying Between 1 to 3999

Prabhdeep Singh
Updated on 11-Jul-2023 18:08:03

142 Views

The characters used in an arrangement of numeric notation based on the pre-Roman Roman system are known as Roman numerals. All major symbols are covered in the section below. In this problem, we are given a string of Roman numerals and our task is to convert Roman numerals to decimals in the range of 1 to 3999 Here are some examples and explanations to help you better understand the problem. Input str = "DCCCLXXIV" Output str = 874 Explanation DCCC is the Roman representation of 800 as D represents 500 and C represents 100 LXX is the Roman representation of ... Read More

How to Configure Nginx as Reverse Proxy for Nodejs App?

Satish Kumar
Updated on 11-Jul-2023 16:45:16

1K+ Views

Introduction Nginx and Nodejs are two powerful tools that web developers use to build modern web applications. Nginx is a high-performance, open-source web server that can also function as a reverse proxy, caching server, load balancer, and more. Nodejs is a JavaScript runtime built on the Chrome V8 engine that allows developers to create fast and scalable network applications. The First Step: Installing and Configuring Nginx A Step-By-Step Guide to Installing Nginx on the Server Before you can configure Nginx as a reverse proxy for your Nodejs app, you need to install it. The installation process varies depending on your ... Read More

Python Program To Write Your Own atoi()

Prabhdeep Singh
Updated on 11-Jul-2023 17:08:47

246 Views

We are given a string that may represent a number and if it is a valid number then we have to convert it into an integer using the Python programming language. atoi() function is used in C programming language and used to convert the string which is passed as the parameter to it into an integer value if the string is a valid integer otherwise it shows the undefined behavior. Sample Examples Input 1 string S = "9834" Output 9834 Explanation We are given a string that represents a number so we have just got the same output. ... Read More

How to Disable root Login Access to PhpMyAdmin?

Satish Kumar
Updated on 11-Jul-2023 16:10:27

895 Views

Introduction PhpMyAdmin is a popular open-source tool used to manage MySQL databases. It provides a web interface that allows users to interact with the database through their web browser. One of the default login options for PhpMyAdmin is root login access, which grants a user full administrative privileges over the entire database system. While root login access may be convenient for initial setup and configuration, it poses significant security risks. If an attacker gains access to your root credentials, they can cause irreparable damage to your database or steal sensitive information. Explanation of Root Login Access The root user account ... Read More

C Program to Find Minimum Insertions to Form a Palindrome

Prabhdeep Singh
Updated on 11-Jul-2023 16:57:21

280 Views

A palindrome is a string that is just equal to the reverse of it. We are given a string and we have to find the minimum number of insertions of any characters required to make the given string as the palindrome. We will see the three approaches: first recursive approach, then we will memorize this solution, and last, we will implement the dynamic programming approach. Recursive ApproachExample #include // library for input and output #include // library to get the integer limits #include // library for strings // function to find the minimum of ... Read More

Java program to find length of the longest substring without repeating characters

Prabhdeep Singh
Updated on 24-Jul-2024 11:43:39

907 Views

In Java, substrings are part of the string which contains the continuous character of the string of any length from 1 to complete string. We are given a string and we have to find the length of the largest substring from the given string that only contains the unique characters. We will see three types of methods: finding every substring, sliding windows, and two-pointers. Problem Statement Given a string, write a Java program to find length of the longest substring without repeating characters − Input thisisthegivenstring Output The length of the longest substring that contains only unique characters is: ... Read More

Java Program To Write Your Own atoi()

Prabhdeep Singh
Updated on 11-Jul-2023 16:37:42

433 Views

atoi() function is used in C programming language and used to convert the string which is passed as the parameter to it into an integer value if the string is a valid integer otherwise it shows the undefined behavior. We will implement the atoi() function in the Java programming language. Input string str = "123" Output 123 Explanation We are given a string that represents a number so we have just got the same output. Input string str = "897c7" Output Invalid Input Explanation The given string is not a valid integer, so we have given the ... Read More

Java Program to Find Longest Common Prefix Using Word by Word Matching

Prabhdeep Singh
Updated on 11-Jul-2023 16:31:33

337 Views

We are given a set of strings and we have to find the common prefix among all of them. Prefix is a substring for a string that contains the zero index and could be of any length from 1 to a complete string. We will implement a Java program with an explanation and a discussion of the time and space complexity. Input string arr[] = {"abcdefgh", "abcdefij", "abcdzy", "abcdabacd"}; Output abcd Explanation From all the given strings, we have the first four characters the same and the remaining characters are not same for all of them. Input string arr[] ... Read More

Convert a Binary String to Another by Flipping Prefixes a Minimum Number of Times

Prabhdeep Singh
Updated on 11-Jul-2023 16:24:09

149 Views

Prefixes are the substrings that start from the zeroth index and could be of any size from 1 to the length of the given string. We are given two binary string which means both strings contain only two different types of characters and we have to make the first string equal to the second one by flipping the prefix a minimum number of times. Also, it is given that the length of both of the given strings is equal. Input 1 string str1 = "01100" string str2 = "10101" Output 3 Explanation Only operation that we can perform ... Read More

Advertisements