Logo
PublicationTech InterviewYouTubeSay Hello

#DSA

Popular Tags
  • #JAVASCRIPT
  • #ANDROID
  • #NODEJS
  • #BACKEND
  • #MACHINE_LEARNING
AfterAcademy Tech

AfterAcademy Tech

Remove Duplicates from an unsorted arrray

You are given an unsorted array A[] consisting of N elements and you need to remove all the duplicate elements from the array. All the elements in the resultant array must be unique.

21 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Search an element in a sorted and infinite array

You are given a sorted and infinite array A and an element K. You need to search for the element K in the array. If found, return the index of the element, else return -1.

17 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Maximum Subarray Sum

You are given an array A[] with n elements. You need to find the maximum sum of a subarray among all subarrays of that array. A subarray of array A[] of length n is a contiguous segment from A[i] through A[j] where 0<= i <= j <= n.

16 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find the kth smallest element in an array

Given an array A[] of n elements and a positive integer K, find the Kth smallest element in the array. It is given that all array elements are distinct.

12 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Check if two strings are anagrams of each other - Interview Problem

Given two strings S1 and S2 of size m and n respectively, you need to check whether the two strings are an anagram of each other or not. S1 is an anagram of S2 if the characters of S1 can be rearranged to form S2.

08 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find minimum and maximum value in an array - Interview Problem

Given an array A[] of size n, you need to find the maximum and minimum element present in the array.Your algorithm should make minimum number of comparisons.

06 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Longest Consecutive Sequence - Interview Problem

Given an unsorted array A[] consisting of n integers, you need to find the length of the longest consecutive sequence of integers in the array.

04 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find the intersection of two unsorted arrays - Interview Problem

Given two integer arrays A[] and B[] of size m and n, respectively. We need to find the intersection of these two arrays. The intersection of two arrays is a list of distinct numbers which are present in both the arrays. The numbers in the intersection can be in any order.

01 Oct 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Check for pair in an array with a given sum - Interview Problem

Write a program that, Given an array of n integers and given a number K, determines whether or not there exist two elements whose sum is exactly K.

27 Sep 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find whether an array is a subset of another array - Interview Problem

Given two integer array A[] and B[] of size m and n(n <= m) respectively. We have to check whether B[] is a subset of A[] or not. An array B is a subset of another array A if each element of B is present in A. (There are no repeated elements in both the arrays)

25 Sep 2019
Thumbnail

  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 17

Popular Tags
  • #JAVASCRIPT
  • #ANDROID
  • #NODEJS
  • #BACKEND
  • #MACHINE_LEARNING
CONNECT WITH US

© Copyright 2025 AfterAcademy
Privacy Policy
Terms And Conditions
Cookie Policy
This website uses cookies to ensure you
get the best experience on our website.
Read More