/Interview Programs

Interview Programs

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 String source and return the count. Test Cases:

TAGS: CCore JavaCppInterview QuestionsPrograms

0 comments

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

TAGS: CCore JavaCppInterview QuestionsPrograms

0 comments

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 to all the programming languages. Write a Program to Print the following Pattern

Write a Program to Print the following Pattern

Write a Program to Print the following Pattern

Write a Program […]

0 comments

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 most important sorting technique and also an important Java interview program of all time. Given an integer array, sort the array elements in ascending order or descending order using Bubble Sort technique without using sort() […]

0 comments

Move all zeros to last/end in the array

Hey guys, Bushan here, welcome back to B2 Tech. Today in this article I will show you how to solve another Interview program using Java/C/C++ and Python. So without wasting anymore time let’s begin. Problem Statement: Given an integer array, move/shift all the zeros in the array to the end of the array and return […]

0 comments

Given String is Palindrome or not ?

One of the most popular interview question for both freshers as well as experience is this, Pass a string as a parameter. Check whether the given String is Palindrome or not if it is Palindrome then return true otherwise return false. Before that let’s understand what is Palindrome? What is Palindrome? A word, phrase, or […]

0 comments

Reverse a given String

One of the most popular interview question for both freshers as well as experience is this, Pass a string as a parameter. Reverse the string and return it. All the alphabets in the strings should be individually reversed and then returned. That’s it for this article, I hope this article is helped you in one […]

0 comments