Create a program that reads a duration from the user as a number of days, hours, minutes, and seconds. Compute and display the total number…
Python makes regular expressions available through the re module. For the first part in using regular expressions and matching the stringyou can visit this link –>…
Python makes regular expressions available through the re module. For the first part in using regular expressions and matching the stringyou can visit this link…
Python makes regular expressions available through the re module.Regular expressions are combinations of characters that are interpreted as rules for matching sub-strings. For instance, the…
Mr.Greet is the name of the digital notice board placed at the entrance of the seminar hall. Its purpose is to welcome each and every…
A bipartite graph is a special kind of graph that consists of two vertex sets. There is an undirected graph with n nodes, where each…
Given a square matrix of order n*n, we need to print elements of the matrix in Z form.Square matrix means “A matrix having same or…
Given a square matrix and a number k. The task is to shift the first k elements of each row to the right of the…
You are a coach at your local university. There are n students under your supervision, the programming skill of the i-th student is ai. You…
Given an m x n matrix, return all elements of the matrix in spiral order. INPUT_1:1 2 3 4 516 17 18 19 615 24 …
Given a matrix containing lower alphabetical characters only, we need to print all palindromic paths in given matrix. A path is defined as a sequence…
Find the start and end index of unsorted subarray such that sorting this subarray can sort all the array. INPUT_1:Array: 2 6 4 8 10 …
Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole…
Given an array of distinct n integers. The task is to check whether reversing one sub-array make the array sorted or not. If the array…
Three arrays of same size are given. Find a triplet maximum – minimum (descending order max to min) in such that triplet is minimum of…
Rearrange characters in a string such that no two adjacent are same.Given a string str, rearrange the characters of s so that any two adjacent…
We are given a matrix with R rows and C columns has cells with integer coordinates (rCenter, cCenter), where 0 <= r < R and…
Given an array of words, Group all anagrams together. Anagrams : a word, phrase, or name formed by rearranging the letters of another, such as spar, formed…
Given an array of words, print all anagrams together. Anagrams : a word, phrase, or name formed by rearranging the letters of another, such as spar,…
Given an array of meeting time intervals consisting of start and end times [ [ s1, e1], [ s2, e2], …] ( si < ei…