JobsJob TrackerJob alerts

Royal Bank of Scotland ยท 13 questions

All 13Coding 10System Design 2Low-Level Design 1
  • Implement LinkedListCoding
  • HashMap vs HashTableCoding
  • Design Patterns ImplementationCoding
  • Concurrency PrimitivesSystem Design
  • Find row with highest number of 1s in a sorted 2D matrixCoding
  • Reverse a linked list recursivelyCoding
  • Synchronization for two roads with one-sided trafficCoding
  • Counting semaphore for resource with N instancesCoding
  • Design a multi-client variable pricing serviceSystem Design
  • Cache and custom data structure implementationLow-Level Design
  • Count elements on the left greater than current elementCoding
  • Find the nth root of a number xCoding
  • Find quadruplets with a given sum in an unsorted arrayCoding
โ† Royal Bank of Scotland questions
  1. Interview questions
  2. Royal Bank of Scotland
  3. Find row with highest number of 1s in a sorted 2D matrix
Coding

Find row with highest number of 1s in a sorted 2D matrix

Filed under Royal Bank of Scotland

The question

Given a 2D sorted matrix with 0s and 1s as column values, find the row that contains the highest number of 1s.

No write-up yet. Related questions below have one.

Related Royal Bank of Scotland questions

  • Implement LinkedList
  • Design Patterns Implementation
  • Synchronization for two roads with one-sided traffic
  • Counting semaphore for resource with N instances
  • Count elements on the left greater than current element
โ† Concurrency PrimitivesReverse a linked list recursively โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.