Print matrix in Z form. Input: mat[][] = {1, 2, 3, 4, 5, 6, 7, 8, 9} Output: 1 2
Print all jumping numbers smaller than or equal to x. Input: x = 105 Output: 0 1 2 3 4
Find if there is a rectangle in binary matrix with corners as 1. Input: mat[][] = {{1, 0, 0, 1,
Print squares of diagonal elements in O(n) time complexity Input: 1 2 3 4 5 6 7 8 9 Output:
Find the length of unsorted subarray such that sorting this subarray can sort all the array. Print the start and
Given a stack containing n elements reverse the stack with the help of an empty stack. import java.util.Stack; public class
Problem Statement: Given 2 String source and target, find the number of occurrences that the String target is present in
Problem Statement: Given a String, Sort the characters in Ascending/Descending from a given String and return the String Test Cases
Following are the Patterns asked in many job interviews for both Freshers as well as Experience. Same logic will apply
Hi guys, Bushan here, welcome back to B2 Tech. Today in this article we will discussing  about one of the