Siva Sai has Published 279 Articles

Make all characters of a string same by minimum number of increments or decrements of ASCII values of characters

Siva Sai

Siva Sai

Updated on 18-May-2023 11:36:25

145 Views

The ASCII (American Standard Code for Information Interchange) system is often used in programming to manipulate characters. In this article, we will be examining an interesting problem where we need to make all characters of a string same by the minimum number of increments or decrements of ASCII values of ... Read More

Lexicographically smallest Palindromic Path in a Binary Tree

Siva Sai

Siva Sai

Updated on 18-May-2023 11:31:50

144 Views

Binary trees are fundamental data structures in computer science, providing an efficient way to organize data hierarchically. When traversing these trees, we often uncover intriguing computational problems. Among these, identifying the lexicographically smallest palindromic path is a fascinating challenge. This article elucidates an effective C++ algorithm to solve this problem ... Read More

Extract URLs present in a given string

Siva Sai

Siva Sai

Updated on 17-May-2023 16:13:24

356 Views

In the information age, it's common to encounter strings of text that contain URLs. As part of data cleaning or web scraping tasks, we often need to extract these URLs for further processing. In this article, we'll explore how to do this using C++, a high-performance language that offers fine-grained ... Read More

Different Ways to Generate String by using Characters and Numbers in Java

Siva Sai

Siva Sai

Updated on 17-May-2023 16:09:06

582 Views

Generating strings that include characters and numbers is a common task in programming. Java provides several ways to generate such strings, and in this article, we will discuss some of the ways to generate strings using characters and numbers in Java. We will cover different approaches to generate random strings ... Read More

Classify strings from an array using Custom Hash Function

Siva Sai

Siva Sai

Updated on 17-May-2023 15:37:45

247 Views

In this article, we will delve into an interesting problem involving strings, hashing, and classification in C++. The problem statement is "Classify strings from an array using a custom hash function". This problem offers a great opportunity to learn about custom hash functions, their uses, and their applications in data ... Read More

Taking a Snapshot from System Camera using OpenCV in Java

Siva Sai

Siva Sai

Updated on 15-May-2023 15:53:30

259 Views

Introduction OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning software library. It contains more than 2500 optimized algorithms, which are extensively used in real-time applications. Java provides bindings to OpenCV via the JavaCV library, allowing Java developers to leverage OpenCV's capabilities in their applications. ... Read More

System.out.println in Java

Siva Sai

Siva Sai

Updated on 15-May-2023 15:47:08

37K+ Views

Introduction System.out.println is a method in Java that prints a message to the standard output (typically the console) and appends a newline character. It's widely used to display messages, data, and the results of operations during the execution of a program. This method is essential for understanding the flow of ... Read More

Symmetric Encryption Cryptography in Java

Siva Sai

Siva Sai

Updated on 15-May-2023 15:45:35

2K+ Views

Introduction Symmetric encryption, also known as secret-key encryption, is a type of encryption where the same key is used for encryption and decryption. This encryption method is fast and efficient, making it suitable for encrypting large amounts of data. The most commonly used symmetric encryption algorithm is the Advanced Encryption ... Read More

Swapping items of a list in Java _ Collections.swap() with Example

Siva Sai

Siva Sai

Updated on 15-May-2023 15:41:37

130 Views

This article will provide an in-depth explanation of how to swap items in a list using the Collections.swap() method in Java. This topic is crucial for anyone looking to strengthen their data manipulation skills in Java, especially in dealing with list data structures. Java provides an extensive suite of tools ... Read More

Swap Corner Words and Reverse Middle Characters

Siva Sai

Siva Sai

Updated on 15-May-2023 15:38:37

257 Views

In this article, we'll delve into a fascinating string manipulation problem that involves swapping corner words of a string and reversing the middle characters. This kind of problem is quite common in coding interviews, and it's a great way to enhance your understanding of string manipulation in Java. Java provides ... Read More

Advertisements