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 on Trending Technologies
Technical articles with clear explanations and examples
How to validate MasterCard number using Regular Expression?
Mastercard is a multinational financial services company that has provided payment processing services to clients globally since its establishment in 1966. Its headquarters remain based in New York, USA. It marked as one of the biggest payment systems in the world, with rivals Visa and American Express. They stand out and are well fitted for both of the consumer and business need due to the large range of goods they provide, which may involve credit cards, debit cards, and prepaid cards. Among them are prepaid cards, debit cards, and credit cards. To distribute these card options globally, it works ...
Read MoreBinary string with given frequencies of sums of consecutive pairs of characters
A binary string is a series of 0s and 1s in computer science and mathematics. The sum of two adjacent characters is indicated by sums of subsequent pairs of characters. For example to understand the below topic, the total number or digits of the succeeding pairs in the string "11010" is 1+1=2, 1+0=1, and 0+1=1. The goal is to locate a binary string that satisfies the specified frequencies using the frequencies of these sums as a guide. Applications of this issue can be found in fields like information theory and coding theory. Methods To find a binary string with given ...
Read MoreHow to Create Gradient Animations Like Instagram using Spark Library in Android?
Gradient animations offer an outwardly engaging touch to versatile applications, making strides in general client involvement. Instagram is an outstanding illustration of slope movements, where brilliant and consistently changing colour slopes are utilised to create compelling visual impacts. The Start Library could be a sophisticated apparatus that makes it simpler to form and quicken angles in Android apps. The Start Library, with its basic API and numerous customization options, empowers designers to easily incorporate energetic and eye-catching slope activities. Methods Used Object Animator method ...
Read MoreHow to Create Google Lens Application in Android?
The ability to extract and analyse text from photos or video feeds is a valuable capability that may considerably improve an Android application's functionality and user experience. Google Lens, a sophisticated image recognition and augmented reality technology developed by Google, is one famous example of such capabilities. Although duplicating the whole functionality of Google Lens is a difficult endeavour, we may investigate a simpler implementation that focuses on text recognition in an Android app using the Google Vision API. Methods Used Text Recognition using Google Vision ...
Read MoreCheck if a number ends with another number or not
A typical programming challenge is determining whether a number terminates with another number. To solve this problem, you must identify the last few digits of a given number and check to see if they match another number. Numerous applications, including data processing, string manipulation, and numerical analysis, frequently include this kind of operation. Programming approaches including converting numbers to strings, modular arithmetic, and the use of logical operators are used to solve this challenge. Beginner and intermediate programmers who want to get better at manipulating numbers and solving algorithmic issues should be interested in this topic. Methods There are various ...
Read MoreSmallest number possible by swapping adjacent even odd pairs
"Even-odd pairs" means to pairings of two consecutive integers, one is even and the other odd. For example, even-odd pairs include (2, 3), (4, 5), (6, 7), etc. These pairings are commonly employed in number changing-based algorithms and programming exercises. When repeating over a set of numbers, like, one could only want to carry out operation on even or odd numbers. When this occurs, employing even-odd pairs can aid in code simplification by lowering the number of conditional statements required. Method By swapping nearby even-odd pairings, you can apply the following strategies to determine the least number possible − ...
Read MoreHow to validate Indian Passport number using Regular Expression?
An Indian passport number is special alphanumeric code that Indian government issues to owner of an Indian passport. The passport number is made up of 8–12 characters, that may include both letters and digits. The first two characters of passport number indicate type of passport, such as P for an ordinary passport, D for a diplomatic passport, and S for an official passport. The next two characters stand for the code of the organization that issues passports, and they are followed by string of numbers that serve as passport holder's special identification. Indian passport numbers are normally printed on the ...
Read MoreCount of distinct possible strings after performing given operations
Determining the number of unique strings that can be obtained by performing a set of given operations on a string is a common challenge in computer science and mathematics. Several operations, including character deletion, swapping, or string reversal, can be carried out on the string. The objective is to calculate the total count of different output strings achievable through these operations irrespective of their order. The problem-solving techniques applied for this task comprise dynamic programming, recursion, and combinatorics among others—depending upon the nature of specific operations undertaken. Methods To count the distinct possible strings after performing given operations, one ...
Read MoreCheck if there exists a permutation of given string which does not contain any monotonous substring
A monotonous substring is a contiguous substring of given string containing characters whose values are all strictly increasing or strictly decreasing. A monotonous substring is a string sequence that either strictly increases or strictly decreases in value. Method Dynamic Programming Backtracking Method 1: Dynamic Programming One technique is to apply dynamic programming to construct table of sub problems, here each item (i, j) in table denotes whether there exists a permutation of the substring S[i...j] that does not contain any monotonous substring. When i=j, the substring comprises only one character and is hence trivially monotonous. ...
Read MoreHow to Create Dynamic WebView in Android with Firebase?
WebView allows users to integrate web pages in their Android apps, resulting in a integrated user experience. While static WebView implementations are straightforward, the actual usefulness of this component lies in its ability to dynamically load content from numerous sources, such as Firebase, to keep the app up to date with the most recent information. Methods Used Dynamic WebView Integration with Firebase Dynamic WebView Integration with Firebase Algorithm ...
Read More