Karthikeya Boyini has Published 2193 Articles

Java program to check if binary representation is palindrome

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

4K+ Views

A palindrome is a sequence that is same both forwards and backwards. The binary representation of a number is checked for being a palindrome but no leading 0’s are considered. An example of this is given as follows − Number = 5 Binary representation = 101 The binary ... Read More

Introduction to Analysis of Algorithms

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

3K+ Views

In theoretical analysis of algorithms, it is common to estimate their complexity in the asymptotic sense, i.e., to estimate the complexity function for arbitrarily large input. The term "analysis of algorithms" was coined by Donald Knuth. Algorithm analysis is an important part of computational complexity theory, which provides theoretical estimation ... Read More

Introduction to Algorithms for Mathematical Problems

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

451 Views

In this section we will see some common mathematical problems and their possible way solve using different computational algorithms. We will see how to solve differential equations, integrations and some other complex mathematical problems. In this Section We are going to cover − Convert Infix to Postfix Expression Convert ... Read More

Different ways to format long with Java System.out.format

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

496 Views

The System.out.format is used in Java to format output. Here, let’s say the following is our long. long val = 787890; To format, we have considered the following that justifies the output. System.out.format("%d%n", val); System.out.format("%9d%n", val); System.out.format("%+9d%n", val); System.out.format("%08d%n", val); System.out.format("%, 9d%n", val); The following is ... Read More

Generate a graph using Dictionary in Python

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

2K+ Views

The graphs can be implemented using Dictionary in Python. In the dictionary, each key will be the vertices, and as value, it holds a list of connected vertices. So the entire structure will look like Adjacency list of a graph G(V, E). We can use the basic dictionary object, ... Read More

Hexadecimal literal of type long in Java

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

1K+ Views

Hexadecimal literal of type long is represented as − long hexLong = 0XABL; For Hexadecimal, the 0x or 0X is to be placed in the beginning of a number. Note − Digits 10 to 15 are represented by a to f (A to F) in Hexadecimal Example ... Read More

Formatted text in Linux Terminal using Python

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

326 Views

In this section, we will see how to print formatted texts in Linux terminal. By formatting, we can change the text color, style, and some special features. Linux terminal supports some ANSI escape sequences to control the formatting, color and other features. So we have to embed some bytes ... Read More

How to use XmlSerializer in C#?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

561 Views

Serialization/ De-serialization allow communication with another application by sending and receiving data. With XmlSerializer, you can control how objects are encoded into XML. To perform XML Serialization, you need the following two classes − StreamWriter class XmlSerializer class Call the Serialize method with the parameters of the StreamWriter ... Read More

Keywords in Python

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

5K+ Views

Like other languages, Python also has some reserved words. These words hold some special meaning. Sometimes it may be a command, or a parameter etc. We cannot use keywords as variable names. The Python Keywords are True False class def return if elif else try ... Read More

Network Switching

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

2K+ Views

Definition Network switching is the process of transmitting data packets from the source to the destination through a number of intermediate network nodes. Here, each node controls or switches data packets to the next node towards the destination. When data comes on a node it is called ingress, and when ... Read More

Advertisements