# Tag Archives: rotation

Given a square matrix, mat[][] of dimensions N * N, the task is find the maximum sum of diagonal elements possible from the given matrixâ€¦ Read More
Given a square matrix, mat[][] of dimensions N * N, the task is find the maximum sum of diagonal elements possible from the given matrixâ€¦ Read More
Given a square matrix, mat[][] of dimensions N * N, the task is find the maximum sum of diagonal elements possible from the given matrixâ€¦ Read More
Given a square matrix, mat[][] of dimensions N * N, the task is find the maximum sum of diagonal elements possible from the given matrixâ€¦ Read More
Given two arrays arr1[] and arr2[] of N integers and array arr1[] has distinct elements. The task is to find the maximum count of correspondingâ€¦ Read More
Given an array arr[] of N integers and Q queries of the form {X, Y} of the following two types: If X = 1, rotateâ€¦ Read More
Given an array arr[] of N integers and Q queries of the form {X, Y} of the following two types: If X = 1, rotateâ€¦ Read More
Given an array arr[] of N integers and Q queries of the form {X, Y} of the following two types: If X = 1, rotateâ€¦ Read More
Given an array arr[] of N integers and Q queries of the form {X, Y} of the following two types: If X = 1, rotateâ€¦ Read More
Given a doubly linked list, rotate the linked list counter-clockwise by N nodes. Here N is a given positive integer and is smaller than theâ€¦ Read More
Given a doubly linked list, rotate the linked list counter-clockwise by N nodes. Here N is a given positive integer and is smaller than theâ€¦ Read More
Given a doubly linked list, rotate the linked list counter-clockwise by N nodes. Here N is a given positive integer and is smaller than theâ€¦ Read More
Given a doubly linked list, rotate the linked list counter-clockwise by N nodes. Here N is a given positive integer and is smaller than theâ€¦ Read More
Given an integer x, the task is to find if every k-cycle shift on the element produces a number greater than or equal to theâ€¦ Read More
Given an integer x, the task is to find if every k-cycle shift on the element produces a number greater than or equal to theâ€¦ Read More