Skip to content

PrepBytes Blog

ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING

Menu
  • Language
    • C
    • C++
    • Java
    • Javascript
    • Python
  • Data Structure
    • Array
    • Graphs
    • Heap
    • Linked List
    • Segment Tree
    • Stack
    • Trees
  • Algorithm
    • Backtracking
    • Dynamic Programming
    • Greedy Algorithm
    • Searching
    • Sorting
  • CSE Subjects
    • Operating System
  • Company Placement
  • Interview
    • Interview Tips
    • General Interview Questions
    • Data Structure
    • Languages
    • Algorithms
    • Other Topics
  • Competitive
    • Data Structure
      • Array
      • Graph
      • Heap
      • Queue
      • Segment Tree
      • Stack
      • Tree
      • Tries
    • Algorithm
      • Backtracking
      • Dynamic Programming
      • Greedy Algorithm
      • Searching
      • Sorting
    • Other Topics
      • Computational Geometry
      • Game Theory
      • Maths
      • Pointers
      • Recursion
      • String
  • Others
    • Computational Geometry
    • Game Theory
    • Hashing
    • Maths
    • Pointers
    • Recursion
    • String

prepbytes_articles

Strings Interview Questions

Zigzag String

prepbytes_articlesJuly 1, 2020March 28, 2022
Concepts Used Strings Difficulty Level Easy Problem Statement (Simplified): For a given string S and number of rows R, we have to arrange each character on rows in a vertical...
Arrays Interview Programming

Light in night

prepbytes_articlesJune 11, 2020March 29, 2022
CONCEPTS USED: Sorting DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Given an array A containing N bulbs placed on the road of length L, these bulbs can be placed at any point...
Stacks Interview Questions

Find Substring

prepbytes_articlesJune 11, 2020March 21, 2022
Concepts Used Strings Difficulty Level Easy Problem Statement (Simplified): For given two strings A and B, print out if B is a substring of A or not. If yes print...
Strings Interview Questions

Number of Substrings Containing All Three Characters

prepbytes_articlesJune 11, 2020March 31, 2022
Concepts Used Strings, Sliding Window Algorithm using two pointers Difficulty Level Medium Problem Statement (Simplified): Print the number of substrings containing all three characters i.e. a,b,c at least once in...
Stacks Interview Questions

Power Of 2

prepbytes_articlesJune 11, 2020March 22, 2022
Concepts Used Strings, Mathematics Difficulty Level Hard Problem Statement (Simplified): Find if the number given as a string is the power of two or not. Return 1 if yes, else...
Recursion Interview Questions

Character Combine

prepbytes_articlesJune 11, 2020March 21, 2022
CONCEPTS USED: Recursion DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Given two characters C1, C2 and an integer K, print all the possible K length combinations of both the characters. Print the...
Recursion Interview Programming

Generate all Pairs of 0 and 1

prepbytes_articlesJune 10, 2020March 23, 2022
CONCEPTS USED: Recursion DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given N pairs of Binary Numbers 0 and 1, your task is to generate all possible combinations such that for each 0...
Arrays Interview Programming

Students Roll Number

prepbytes_articlesJune 10, 2020April 14, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Easy PROBLEM STATEMENT(SIMPLIFIED): Given N seats, where English paper students are evenly placed (0,2,4,...) and Hindi paper students are oddly placed (1,3,5,...). Print the...
Arrays Arrays Interview Programming

Find Maximum

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Arrays DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given an array A of N positive integers. The task is to find the maximum of j - i such that A[j]...
Arrays Arrays Interview Programming

Find the Missing

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Given an array A with N-1 elements, with elements from 1 to N present into it. Find a single missing element....
Arrays Interview Programming

Quality Factor

prepbytes_articlesJune 10, 2020March 23, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given a magical container such that whenever :- A Red Stone is added to the ith bag, the quality factor of...
Arrays Interview Programming

Rectangular Sweet Box

prepbytes_articlesJune 10, 2020March 30, 2022
CONCEPTS USED: Post Min array DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given an array A with N elements, your task is to divide the array in maximum possible segments such that...
Arrays Arrays Interview Programming

Unique Array

prepbytes_articlesJune 10, 2020March 31, 2022
CONCEPTS USED: Hashing DIFFICULTY LEVEL: Easy PROBLEM STATEMENT(SIMPLIFIED): Given an array A with N elements containing all elements from 0 to N-1, your task is to find the maximum length...
Arrays Interview Questions

Unique Color Shirt

prepbytes_articlesJune 10, 2020March 23, 2022
CONCEPTS USED: Hashing DIFFICULTY LEVEL: Easy PROBLEM STATEMENT(SIMPLIFIED): Given an array A with N integers, find the count of unique integers in the array. See original problem statement here For...
Arrays Interview Programming

Find the Leader

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Print all those elements that have no element greater than them in the right side of the array. Print elements from...
Arrays Interview Programming

Total number of sub-arrays whose sum value is greater than or equal to K

prepbytes_articlesJune 10, 2020April 8, 2022
CONCEPTS USED: Sliding Window Technique DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Given an array of N elements, print the total number of sub-arrays whose sum value is greater than or equal...
Arrays Interview Programming

Interesting Array

prepbytes_articlesJune 10, 2020March 28, 2022
Concepts used: Two Pointers Technique Difficulty level: Medium Problem statement(SIMPLIFIED): Given an array A with N elements arranged in an ascending order, also given a number K. Check if their...
Arrays Interview Programming

Greater than Neighbor

prepbytes_articlesJune 10, 2020April 1, 2022
CONCEPTS USED: Arrays DIFFICULTY LEVEL: Easy PROBLEM STATEMENT(SIMPLIFIED): Given an array A of N elements, your task is to print all those indexes that have values greater than its left...
Arrays Interview Programming

Greater And Least

prepbytes_articlesJune 10, 2020March 23, 2022
CONCEPTS USED: Searching DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given a number N, find the smallest number that has same set-of-digits as N and is greater than N. If N is...
Arrays

Array Max

prepbytes_articlesJune 10, 2020April 1, 2022
CONCEPTS USED: Suffix Sum Arrays DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given an array of N integers and an integer K, the task is to find the maximum sum taking every...
Arrays Interview Programming

Arithmetic Progression

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Hashing, Basic Mathematics DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given an array of N integers, print the value of all those elements, whose indexes form an increasing Arithmetic Progression...
Arrays Interview Programming

Friends Ages

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Hashing DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Given N ages of students of a college and some conditions which determine whether A can Friend Request B or not. Determine...
Arrays Interview Questions

Min and Max

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Easy PROBLEM STATEMENT(SIMPLIFIED): With a given array of size N, find the largest (maximum) and smallest (minimum) element from the elements. See original problem...
Arrays Interview Programming

Array Rotation

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): With a given array of size N and steps K, we have to print the array after K rotations to the...
Arrays Interview Programming

Pairs

prepbytes_articlesJune 10, 2020March 31, 2022
CONCEPTS USED: Hashing DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Given M pairs of integers, where each integer is between 1 and N inclusive. Check if there exists two integers x and...
Recursion Interview Programming

Quadrilateral

prepbytes_articlesJune 10, 2020March 30, 2022
CONCEPTS USED: Basic Mathematics, Co-ordinate Geometry DIFFICULTY LEVEL: Easy PROBLEM STATEMENT(SIMPLIFIED): Given 4 coordinate points, check if the given quadrilateral formed from given coordinates forms a Square or not, print...
Arrays Interview Programming

Saitama’s Punch

prepbytes_articlesJune 10, 2020March 30, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given an array A which contains the sorted time points at which a hero named Saitama punches and paralyzes his enemy...
General Coding

Minimum number of notes

prepbytes_articlesJune 10, 2020March 30, 2022
CONCEPTS USED: Basic Mathematics DIFFICULTY LEVEL: Easy PROBLEM STATEMENT(SIMPLIFIED): Given various currency notes (1,2,5,10,20,50 ,100,500,1000) and N rupees. Print the minimum number of currency notes required to exchange for the...
Arrays Interview Programming

Benchmates

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Efficient Array Search DIFFICULTY LEVEL: Medium PROBLEM STATEMENT(SIMPLIFIED): Given marks of N students sitting on a bench and a value of K, print the index of the student...
Arrays Interview Questions

Array ZigZag

prepbytes_articlesJune 10, 2020March 28, 2022
CONCEPTS USED: Arrays DIFFICULTY LEVEL: Hard PROBLEM STATEMENT(SIMPLIFIED): Given an array of N integers, convert it into a ZigZag array by choosing any element and decrementing it by 1. An...

Posts navigation

1 2 Next

Pages

  • ACCENTURE
  • ADOBE
  • ALGORITHMS
  • AMDOCS
  • APPLE
  • ARRAY
  • ARRAY COMPETITIVE CODING QUESTIONS
  • ARRAY INTERVIEW QUESTIONS
  • BACKTRACKING
  • BACKTRACKING COMPETITIVE CODING QUESTIONS
  • BACKTRACKING INTERVIEW QUESTIONS
  • BYJU’S
  • C INTERVIEW QUESTIONS
  • C PROGRAMMING LANGUAGE
  • C++ INTERVIEW QUESTIONS
  • C++ PROGRAMMING LANGUAGE
  • COMPANY PLACEMENT PROCEDURE
  • COMPETITIVE CODING
  • COMPUTATIONAL GEOMETRY
  • COMPUTATIONAL GEOMETRY COMPETITIVE CODING QUESTIONS
  • CSE SUBJECTS
  • DATA STRUCTURE
  • DELL
  • DESHAW
  • DYNAMIC PROGRAMMING
  • DYNAMIC PROGRAMMING COMPETITIVE CODING QUESTIONS
  • DYNAMIC PROGRAMMING INTERVIEW QUESTIONS
  • FACEBOOK
  • FLIPKART
  • GAME THEORY
  • GAME THEORY COMPETITIVE CODING QUESTIONS
  • General Interview Questions
  • GOLDMAN SACHS
  • GOOGLE
  • GRAPH COMPETITIVE CODING QUESTIONS
  • GRAPH INTERVIEW QUESTIONS
  • GRAPHS
  • GREEDY ALGORITHM
  • GREEDY ALGORITHM COMPETITIVE CODING QUESTIONS
  • GREEDY ALGORITHM INTERVIEW QUESTIONS
  • HASHING
  • HCL
  • HEAP
  • HEAP COMPETITIVE CODING QUESTIONS
  • HEAP INTERVIEW QUESTIONS
  • INFOSYS
  • INTERVIEW PREPARATION
  • INTERVIEW TIPS
  • INTUIT
  • JAVA INTERVIEW QUESTIONS
  • JAVA PROGRAMMING LANGUAGE
  • JAVASCRIPT PROGRAMMING LANGUAGE
  • JUSPAY
  • LINKED LIST
  • LINKED LIST INTERVIEW QUESTIONS
  • MAHINDRA COMVIVA
  • MAKEMYTRIP
  • MATHEMATICS
  • MATHEMATICS COMPETITIVE CODING QUESTIONS
  • MATHEMATICS INTERVIEW QUESTIONS
  • MICROSOFT
  • NAGARRO
  • OPERATING SYSTEM
  • ORACLE
  • OTHER TOPICS
  • PAYTM
  • Pin Posts
  • POINTERS
  • POINTERS COMPETITIVE CODING QUESTIONS
  • PROGRAMMING LANGUAGE
  • PYTHON PROGRAMMING LANGUAGE
  • QUALCOMM
  • QUEUE
  • QUEUE COMPETITIVE CODING QUESTIONS
  • QUEUE INTERVIEW QUESTIONS
  • RECURSION
  • RECURSION COMPETITIVE CODING QUESTIONS
  • RECURSION INTERVIEW QUESTIONS
  • SAMSUNG
  • SAP LABS
  • SEARCHING
  • SEARCHING COMPETITIVE CODING QUESTIONS
  • SEARCHING INTERVIEW QUESTIONS
  • SEGMENT TREE
  • SEGMENT TREE COMPETITIVE CODING QUESTIONS
  • SEGMENT TREE INTERVIEW QUESTIONS
  • SORTING
  • SORTING COMPETITIVE CODING QUESTIONS
  • SORTING INTERVIEW QUESTIONS
  • STACK
  • STACK COMPETITIVE CODING QUESTIONS
  • STACK INTERVIEW QUESTIONS
  • STRING
  • STRING COMPETITIVE CODING QUESTIONS
  • STRING INTERVIEW QUESTIONS
  • TCS
  • TREE COMPETITIVE CODING QUESTIONS
  • TREE INTERVIEW QUESTIONS
  • TREES
  • TRIES COMPETITIVE CODING QUESTIONS
  • WIPRO
  • ZOHO CORP

Tags

algorithm array arrays basic basic mathematics Binary Search c coding Coding Interview cognizant combinatorics Competititive coding Competititve programming competitive competitive coding Competitive Programming cpp denomination effficent-search Greedy greedy algorithm hard hashing hcl interview interview-coding interview question introduction mahindra-comviva maths medium oracle os Palindromes placement prefix sum process recursion samsung searching sliding window Sorting Strings tutorials zigzag
Close
Menu
  • Language
    • C
    • C++
    • Java
    • Javascript
    • Python
  • Data Structure
    • Array
    • Graphs
    • Heap
    • Linked List
    • Segment Tree
    • Stack
    • Trees
  • Algorithm
    • Backtracking
    • Dynamic Programming
    • Greedy Algorithm
    • Searching
    • Sorting
  • CSE Subjects
    • Operating System
  • Company Placement
  • Interview
    • Interview Tips
    • General Interview Questions
    • Data Structure
    • Languages
    • Algorithms
    • Other Topics
  • Competitive
    • Data Structure
      • Array
      • Graph
      • Heap
      • Queue
      • Segment Tree
      • Stack
      • Tree
      • Tries
    • Algorithm
      • Backtracking
      • Dynamic Programming
      • Greedy Algorithm
      • Searching
      • Sorting
    • Other Topics
      • Computational Geometry
      • Game Theory
      • Maths
      • Pointers
      • Recursion
      • String
  • Others
    • Computational Geometry
    • Game Theory
    • Hashing
    • Maths
    • Pointers
    • Recursion
    • String
FOLLOW US
CONTACT US
+91-8800 2588 17
contact@prepbytes.com
QUICK LINKS
Interview NotesMock TestsPlacement ProgrammeCoding CoursesMock InterviewAbout UsBlog