Logo
PublicationTech InterviewYouTubeSay Hello

#DSA

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

AfterAcademy Tech

Merge Two Sorted Lists - Interview Problem

Merge two sorted linked lists and return it as a new sorted list. The new list should be made by splicing together the nodes of the first two lists.

04 Dec 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Add Two Numbers as Lists - Interview Problem

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contains a single digit. Add the two numbers and return it as a linked list.

18 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find the length of largest subarray with 0 sum

Given an array A[] of n integer elements, find the length of the longest subarray with sum equals to 0.

14 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Set Matrix Zeros - Interview Problem

Given a matrix, A of size M x N of 0's and 1's. If an element is 0, set its entire row and column to 0

14 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Check if a binary tree is BST or not - Interview Problem

Given the root of a binary tree, check whether it is a binary search tree or not.

12 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Move all the zeroes to the end - Interview Problem

Given an array A[] of n elements filled with several integers, some of them being zeroes, you need to move all the zeroes to the end.

12 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Sort Characters By Frequency - Interview Problem

You are given a string S and its length L and you need to sort its characters based on their frequency. The characters in the output will be distinct and ordered based on their frequency in S, higher frequency comes first.

08 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find the most frequent element in an array - Interview Problem

Given an array A[] of size n, find the most frequent element in the array, i.e. the element which occurs the most number of times.

05 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find the next greater element for every element in an array - Interview Problem

Given an array A[] of size n, you need to find the next greater element for each element in the array. Return an array that consists of the next greater element of A[i] at index i.

05 Nov 2019
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Find the majority element in an array - Interview Problem

You are given an array A[] consisting of n elements. You need to find and return the number which appears more than n/2 times.

28 Oct 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