Add office photos
Employer?
Claim Account for FREE

Google

4.4
based on 1.8k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

Pep&Joss Interview Questions and Answers

Updated 12 Aug 2024
Popular Designations

Q1. Write a program to mirror the pixel in a screen matrix of 24 bit pixels

Ans.

Program to mirror the pixel in a screen matrix of 24 bit pixels

  • Create a 2D array to represent the screen matrix of pixels

  • Iterate through each row and swap the pixels from left to right

  • Ensure to handle the 24 bit pixels properly for mirroring

  • Example: [[255, 0, 0], [0, 255, 0], [0, 0, 255]] -> [[0, 0, 255], [0, 255, 0], [255, 0, 0]]

Add your answer

Q2. what are trees and binary search

Ans.

Trees are hierarchical data structures with nodes connected by edges. Binary search is a search algorithm that finds the position of a target value within a sorted array.

  • Trees are made up of nodes connected by edges, with a root node at the top and leaf nodes at the bottom.

  • Binary search is a divide and conquer algorithm that compares the target value to the middle element of a sorted array.

  • Binary search is efficient for searching in sorted arrays as it eliminates half of the ...read more

Add your answer

Q3. What is the max sub array?

Ans.

Max sub array refers to the contiguous subarray within an array that has the largest sum of elements.

  • Max sub array problem is a common algorithmic problem in computer science.

  • It involves finding the subarray with the largest sum of elements.

  • Example: Given array [1, -2, 3, 4, -1, 2, 1, -5, 4], the max sub array is [3, 4, -1, 2, 1] with a sum of 9.

Add your answer

Q4. dp questions - longest increasing subsequence

Ans.

Find the longest increasing subsequence in an array.

  • Use dynamic programming to solve this problem.

  • Iterate through the array and keep track of the longest increasing subsequence ending at each index.

  • Return the maximum length found.

Add your answer
Discover Pep&Joss interview dos and don'ts from real experiences

Q5. grapg question - detect a cycle

Ans.

Detecting a cycle in a graph using depth-first search or Floyd's cycle detection algorithm.

  • Use depth-first search to detect a cycle in a graph by keeping track of visited nodes and checking for back edges.

  • Alternatively, use Floyd's cycle detection algorithm for detecting a cycle in a linked list or graph.

  • Example: For a graph with nodes A, B, C, D and edges (A->B, B->C, C->D, D->A), a cycle is detected when visiting node A again.

  • Example: For a linked list with nodes 1, 2, 3, 4...read more

Add your answer

Q6. what is software testing.

Ans.

Software testing is the process of evaluating a software application to ensure it meets specified requirements and functions correctly.

  • Identifying defects or bugs in the software

  • Verifying that the software meets functional and non-functional requirements

  • Ensuring the software is user-friendly and meets user expectations

  • Types of testing include unit testing, integration testing, system testing, and acceptance testing

Add your answer

Q7. what are graphs

Ans.

Graphs are data structures that consist of nodes (vertices) connected by edges (links).

  • Graphs can be directed or undirected.

  • Nodes can have attributes or properties.

  • Edges can have weights or labels.

  • Examples of graphs include social networks, road networks, and organizational hierarchies.

Add your answer

More about working at Google

Top Rated Large Company - 2024
Top Rated Internet/Product Company - 2024
HQ - Mountain View,California, United States
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Pep&Joss

based on 9 interviews in the last 1 year
1 Interview rounds
Coding Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Softwaretest Engineer Interview Questions from Similar Companies

3.7
 • 29 Interview Questions
4.4
 • 23 Interview Questions
3.7
 • 15 Interview Questions
3.6
 • 14 Interview Questions
3.8
 • 13 Interview Questions
3.7
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter