Interview Programs

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