All Medium Articles
Given an IP Address and task is to change the IP address equivalent to the hexadecimal value. Examples: Input : 127.0.0.1Output : 0x7f000001Input : 172.31.0.2Output… Read More
Given a string that contains only numeric digits, we need to check whether that strings contains numbers in a consecutive sequential manner in increasing order. … Read More
Given Preorder traversal of a Binary Search Tree. Then the task is to print leaf nodes of the Binary Search Tree from the given preorder.… Read More
The isblank()function returns non-zero if ch is a character for which isspace() returns true and is used to separate words. Thus for English, the blank… Read More
Write an efficient program to count number of 1s in binary representation of an integer.Examples:  Input : n = 6Output : 2Binary representation of 6… Read More
Having programmed for many years in many languages, I often find myself thinking in English pseudo-code, then I translate my thoughts into whatever artificial syntax… Read More
Pseudocolumn: A pseudo-column behaves like a table column but is not actually stored in the table. You can select from pseudo-columns, but you cannot insert,… Read More
java.util.Calendar.before() is a method in Calendar class of java.util package. The method returns true if the time represented by this Calendar is before the time… Read More
Given a number, check if it is square-free or not. A number is said to be square-free if no prime factor divides it more than… Read More
We have given a large number now we can easily find out the factorial of this large number using boost multiprecision Library. Boost library has… Read More
Given a Binary tree, the task is to print its all level in sorted order Examples: Input : 7 / \ 6 5 / \… Read More
A long, long time ago, when I was in seventh grade, a guest speaker came to our math class. We were all very excited to… Read More
Write a program for sorting variables of any datatype without the use of std::sort . Examples: Input : 2000, 456, -10, 0Output : -10 0… Read More
Round 1: Pen and paper round having 40 technical questions including flowcharts and output prediction for C Programs with no choices. No negative marking and… Read More
The BigDecimal class provides operations on double numbers for arithmetic, scale handling, rounding, comparison, format conversion and hashing. It can handle very large and very… Read More
This article describes a Client and Server setup where a Client connects, sends a string to server and the server shows the original string and… Read More
Given an array of size n. The problem is to find the longest sub-array having exactly k odd numbers. Examples:  Input : arr[] = {2,… Read More
Given an array of n integers sorted in ascending order, write a function that returns a Fixed Point in the array, if there is any… Read More
Write a Java program to take an input string and exchange the first and last word and reverse the middle word. Examples:  Input : Hello… Read More
Given the sides of Octahedron then calculate the surface area. Examples:  Input : 7 Output : 169.741 Input : 9 Output : 280.59 An regular… Read More