Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Adeeba Khan
Page 2 of 2
Python Program to find minimum number of rotations to obtain actual string?
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 ...
Read MorePython program to find maximum uppercase run?
Finding the longest consecutive sequence of uppercase letters in a string is a common text processing task. This problem appears in data analysis, text validation, and pattern extraction scenarios. We'll explore two efficient approaches: the iterative method and regular expressions. Approaches To find the maximum uppercase run in Python, we can use two methods: Using the iterative method Using regular expressions Let's examine both approaches in detail. Method 1: Using Iterative Approach The iterative method scans the string character by character, tracking the current run of ...
Read MoreHow to make an svg scale with its parent container
SVG, or Scalable Vector Graphics, is a markup language built on XML used to create vector graphics. Unlike raster images (JPG, PNG), SVG images are resolution-independent and can be scaled to any size without losing quality. This makes them ideal for responsive web design where graphics must adapt to various screen sizes and containers. What is SVG? SVG is an XML-based markup language for creating vector graphics. Vector graphics are composed of shapes, lines, and curves defined by mathematical equations rather than pixels. This mathematical foundation allows SVG images to be infinitely scalable while maintaining crisp edges and ...
Read MoreHow to make an image draggable in HTML?
The ability to create draggable elements within a web page is one of the new features that HTML5 offers for web developers. It becomes a very popular and widely utilized feature. It simply means to move an image to another location by dragging it there with the cursor. By employing mouse or touch motions, users can drag an image or other content around the page. Making any HTML5 element draggable, including images, is straightforward using the draggable attribute. It accepts the values true, false, or auto. The default value is auto, where the browser determines if an element is ...
Read MoreHow to make basic menu using jQuery UI?
Many websites as well as applications must have menus because they offer a simple and orderly way to navigate between different pages and functionalities. While there are numerous approaches to building menus utilizing HTML, CSS, as well as JavaScript, jQuery UI offers a simple intuitive technology that can help you save time and effort. The fundamentals of building a menu using jQuery UI will be covered in this post, along with the necessary stages and starter samples. This article will give you the resources you need, whether you're an experienced developer or a novice, to make a useful and appealing ...
Read MoreHow to make Auto-filling Forms with jQuery and Web Storage API?
By automatically filling in common fields like name, email, and address, autofill forms have grown in popularity as a feature on websites and mobile applications. When developing autofill forms, developers have two options: either utilize locally stored fixed data or use dynamic data that is periodically updated based on user inputs. The Web Storage API is one of the most important resources available to developers for local data storage. It offers techniques for browsers to store key/value pairs in a more natural way than with cookies. SessionStorage and localStorage are the two Web Storage techniques; while sessionStorage only keeps data for ...
Read MoreHow to Run Your First Spring Boot Application in IntelliJ?
IntelliJ is simple and very convenient to use in building reliable as well as scalable systems with Spring Boot, and it has become tremendously famous among Java developers. It also offers a convention-over-configuration approach by obviating the demand for bulky boilerplate code and enabling designers to concentrate on business logic. This potent web tool aims in generating a basic project structure with the necessary dependencies. The second method focuses on importing a pre-existing Spring Boot project into IntelliJ IDEA so that one can work on an existing codebase. To execute this code in IntelliJ one must ensure that they have ...
Read MoreHow to Run Your First Spring Boot Application in Spring Tool Suite?
Spring boot facilitate the simple way to create robust, scalable, as well as production-ready applications, by doing this they have revolutionized the development of Java applications. The "convention over configuration" philosophy, which is embraced by Spring Boot as a component of the larger Spring ecosystem, lessens the effort of manual setup and enables developers to concentrate on business logic rather than boilerplate code. The Spring Boot experience is considerably more effective when combined with Spring Tool Suite (STS), a specialized IDE created for Spring development. To execute this code in Spring Tool Suite one must ensure that they have the following prerequisites before we ...
Read MoreHow to Print Colored Text in Java Console?
When dealing with Java terminal apps, individuals may frequently want to print colored text to improve the output's aesthetic appeal and readability. ANSI escape codes can be used to generate colored text instead of the monochrome output that Java's default terminal generally produces. When printed to the console, ANSI escape codes are unique sets of characters that alter the text's appearance by altering its color, style, or background. In this article, we'll look at how to print colored text in the Java console using ANSI escape codes. We'll go over two examples, one with colored text only and the other ...
Read MoreHow to Prevent the Addition of Duplicate Elements to the Java ArrayList?
Widely used Java ArrayLists are data structures that offer dynamic arrays, enabling simple element manipulation. It is sometimes necessary to stop duplicate elements from being added to an ArrayList, though. Duplicate parts can cause your programme to behave unexpectedly, produce erroneous results, and use wasteful algorithms. This article will examine two methods to avoid adding duplicate components to a Java ArrayList, arming you with the information and resources you need to maintain data integrity and write cleaner code. Multiple disadvantages may result from adding duplicate elements to an array list. First, it might result in redundant data, which would use ...
Read More