Skip to content
Algorithms
  • Home
  • IDE
  • Difficulty Level
    • Beginner
    • Intermediate
    • Expert
  • Interviews
    • Amazon Questions
    • Goldman Sachs
    • Google Interview
    • Microsoft Interview
    • Apache
    • NetApp
    • Adobe
    • Facebook
    • NVIDIA
    • Oracle
  • Login
  • Register

Top Companies

Find The Minimum time difference

July 31, 2022April 11, 2021 by Sumit Jain

Minimum time difference Given a list of 24-hour clock time points in “HH:MM” format. Write a program to find the … Read more

Categories Amazon Questions, Arrays, Google Interview, Intermediate, Leet Code, Microsoft Interview, Software Development Engineer (SDE), Software Engineer Tags Intermediate Leave a comment

Departure and Destination Cities in a given itinerary

January 9, 2022January 28, 2021 by Sumit Jain

You are on a business trip and traveling from one city to another. you have a stack of unsorted flight … Read more

Categories Arrays, Beginner, Google Interview, Software Development Engineer (SDE), Software Engineer Tags Beginner Leave a comment

Given an array, rank its elements

January 9, 2022January 24, 2021 by Sumit Jain

Given an array of numbers, write a program to rank the array elements. Example: Given array: [22, 11, 44, 66, … Read more

Categories Arrays, Beginner, Google Interview, Software Development Engineer (SDE), Software Engineer Tags Beginner Leave a comment

Maximum Depth of Valid Nested Parentheses in an arithmetic expression

January 9, 2022January 10, 2021 by Sumit Jain

Given an arithmetic expression which operators, operands and brackets. You need to find out the maximum depth of valid nested … Read more

Categories Amazon Questions, Intermediate, Software Development Engineer (SDE), Software Engineer, Walmart Tags Intermediate Leave a comment

Minimum Increments to make all array elements unique

January 9, 2022December 23, 2020 by Sumit Jain

Given a sorted array of integers, Write an algorithm to make all array elements distinct or unique by doing minimum … Read more

Categories Arrays, Intermediate, Microsoft Interview, Software Development Engineer (SDE), Software Engineer Tags Intermediate Leave a comment

Maximum Surpasser in the given array

January 9, 2022December 18, 2020 by Sumit Jain

The “surpasser” of an element in an array is defined as the number of elements that are to the “right” … Read more

Categories Arrays, Divide and Conquer, Expert, Google Interview, Software Development Engineer (SDE), Software Engineer Tags Expert Leave a comment

Maximum CPU Load Problem in a jobs list

January 9, 2022December 14, 2020 by Sumit Jain

Given a list of n Jobs with start time, end time and CPU load when it is active at any … Read more

Categories Activity Selection, Google Interview, Intermediate, Scheduling/Intervals, Software Development Engineer (SDE), Software Engineer Tags Intermediate Leave a comment

Check If Student is eligible for an Attendance Reward

January 9, 2022December 12, 2020 by Sumit Jain

In school a student gets rewarded if he has an attendance record without being absent for more than once or … Read more

Categories Google Interview, Software Development Engineer (SDE), Software Engineer, Strings Tags Beginner Leave a comment

Maximum overlaps in a given list of time intervals

January 15, 2022December 11, 2020 by Sumit Jain

Interval is defined as [start, end]- the start of the interval to the end of the interval. Given the list … Read more

Categories Activity Selection, Amazon Questions, Google Interview, Scheduling/Intervals Tags Intermediate Leave a comment

Remove Duplicates in a given Sorted Array

January 15, 2022December 9, 2020 by Sumit Jain

Given a sorted array of integers, write a program to remove duplicates in-place by modifying the given array such that … Read more

Categories Amazon Questions, Arrays, Beginner, Software Development Engineer (SDE), Software Engineer Tags Beginner Leave a comment

Replace Elements with Greatest Element on Right

December 5, 2020 by Sumit Jain

Given an array of numbers nums[], write ment a function to replace each element of the array with the greatest … Read more

Categories Amazon Questions, Arrays, Beginner, Career Cup, Leet Code, Software Development Engineer (SDE), Software Engineer Tags Beginner Leave a comment

Count number of pairs in an array with sum = K

January 15, 2022December 4, 2020 by Sumit Jain

Given an array of integers and number K, write a program to find the number of pairs which has sum … Read more

Categories Amazon Questions, Arrays, Intermediate, Software Development Engineer (SDE), Software Development Engineer in Test, Software Engineer, Software Engineer In Test Tags Intermediate Leave a comment

Count similar words in a given array

December 4, 2020 by Sumit Jain

Given an array of strings, write a program to count all the similar words.  Similar words: Two words are similar … Read more

Categories Arrays, Beginner, Hulu, Software Development Engineer in Test, Software Engineer In Test Tags Beginner Leave a comment

Maximum distance from the nearest person.

December 3, 2020 by Sumit Jain

Given a bench with n seats and few people sitting, You are going to sit on a vacant seat such … Read more

Categories Arrays, Google Interview, Intermediate, Software Development Engineer (SDE), Software Engineer Tags Intermediate Leave a comment

Design a data structure for Candidate Voting Problem

January 15, 2022November 25, 2020 by Sumit Jain

Given candidates standing for an election, design a data structure that can support the following modules –  1. voteCandidate (candidateName) … Read more

Categories Google Interview, Intermediate, Software Development Engineer (SDE), Software Engineer Tags Intermediate Leave a comment
Post navigation
Older posts
Page1 Page2 … Page22 Next →






Subscribe ( No Spam!!)

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Recent Posts

  • Find an extra element in two almost similar arrays
  • find the Arithmetic Progression sequence
  • Find the Nth-term in a given arithmetic progression
  • Find The Minimum time difference
  • Departure and Destination Cities in a given itinerary
  • Given an array, rank its elements
  • Find Three Consecutive Odd Numbers in an array
  • Convert to Non-decreasing Array with one change
  • In an array, Duplicate the zeroes without expanding it
  • Maximum Depth of Valid Nested Parentheses in an arithmetic expression






© 2022 Algorithms • Built with GeneratePress