Skip to content

Category Archives: Java

Given a square matrix, the task is that we turn it by 180 degrees in an anti-clockwise direction without using any extra space.  Examples : … Read More
Given an array arr[] and an integer k, we need to print k maximum elements of given array. The elements should printed in the order… Read More
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More
Given a square matrix and the task is to check the matrix is in upper triangular form or not. A square matrix is called upper… Read More
Given a large positive number as string, count all rotations of the given number which are divisible by 8. Examples:  Input: 8 Output: 1 Input:… Read More
Pre-requisite:Bitwise Operators in C/ C++Bitwise Operators in Java The bitwise complement operator is a unary operator (works on only one operand). It takes one number… Read More
A matrix is a two-dimensional data object having m rows and n columns, therefore a total of m*n values. If most of the values of… Read More
An array is given of n length, and problem is that we have to find the length of shortest unordered {neither increasing nor decreasing} sub… Read More
Given an array of integers. Write a program to find the K-th largest sum of contiguous subarray within the array of numbers which has negative… Read More
When we design an Android application, the most prevalent concern among developers is the program’s memory utilization. This is because, because the majority of people… Read More
A tooltip is a message which appears when a cursor is positioned over an icon, image, hyperlink, or any other GUI component. In this application,… Read More
We all know in today’s world, most web app follows the client-server architecture. The app itself is the client or frontend part under the hood… Read More
Given a square matrix of order n*n, you have to interchange the elements of both diagonals. Examples :   Input : matrix[][] = {1, 2, 3, 4,… Read More
A square matrix is said to be symmetric matrix if the transpose of the matrix is same as the given matrix. Symmetric matrix can be… Read More
Given an array arr[]. Find the maximum value of prefix sum which is also suffix sum for index i in arr[]. Examples :  Input :… Read More

Start Your Coding Journey Now!