Logo
PublicationTech InterviewYouTubeSay Hello

#DSA

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

AfterAcademy Tech

Reverse Bits

Given a non-negative integer num, write a program to return the number obtained after reversing the bits of num.

15 Aug 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Middle Of The Linked List

Given a non-empty, singly linked list with head node head, write a program to return a middle node of linked list. If there are even nodes, then there would be two middle nodes, we need to print second middle element.

10 Aug 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Missing Number

Given an array arr[] consists of 0, 1, 2, 3, 4,.....n. But one of the numbers is missing in it. Write a program to find the number that is missing from the array.

10 Aug 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Quick Sort

Sorting is a process of arranging items systematically. There are several ways to sort a list of items. A very useful sorting algorithm in all of the sorting algorithms is quicksort. Given an array of integers arr[], write a program to sort the array in ascending order using Quick Sort.

10 Aug 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Combinations

Given two integers n and k, Write a program to return all possible combinations of k numbers out of 1 2 3 ... n. Elements in a combination must be in a non-descending order. The combinations themselves must be sorted in ascending order, i.e., the combination with the smallest first element should be printed first.

08 Aug 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Distribute Candy Problem

There are N children standing in a line with some rating value. You want to distribute a minimum number of candies to these children such that: Each child must have at least one candy. The children with higher ratings will have more candies than their neighbours. Write a program to calculate the minimum candies you must give.

08 Aug 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Search in a 2-D Matrix

You are given a matrix arr of m x n size. Write a program to searches for a value k in arr. This arr has the following properties: - Integers in each row are sorted from left to right. - The first value of each row is greater than the last value of previous row. This is a basic optimization problem that will clear the concept of searching.

18 Jul 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Binary Search

Given a sorted integer array arr[] of n elements and a target value k, write a program to search k in arr[]. The famous binary search algorithm is easy to implement and the best optimization technique for performing searching operations

18 Jul 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Combination Sum

Given an array of integers arr[] and a target number k, write a program to find all unique combinations in arr[] such that the sum of all integers in the combination is equal to k. This famous backtracking problem has previously been asked in Adobe, Amazon, Facebook.

18 Jul 2020
Thumbnail

AfterAcademy Tech

AfterAcademy Tech

Generate Parentheses

Given n pairs of parentheses, write a program to generate all combinations of balanced parentheses. You have to return a string array containing all possible cases.

18 Jul 2020
Thumbnail

  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 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