JobsJob TrackerJob alerts

HPE ยท 18 questions

All 18Coding 12Low-Level Design 3
  • O(1) Erase from Beginning or EndCoding
  • Percentage Reversal
  • Infection Probability from Specific Group
  • Pie Chart Central Angles
  • Stack Binary Push Code OutputCoding
  • Quicksort Partition IndexCoding
  • Minimum Cost String GenerationCoding
  • Process Creation with ForkLow-Level Design
  • Disk Scheduling AlgorithmsLow-Level Design
  • Bootstrap Storage PropertiesLow-Level Design
  • Sum of Nobita NumbersCoding
  • String SanitizationCoding
  • String Length without LibraryCoding
  • Infinite Grid PathCoding
  • Sorted SquaresCoding
  • Matrix element transformationCoding
  • Sieve of Eratosthenes problemCoding
  • Sort a Linked ListCoding
โ† HPE questions
  1. Interview questions
  2. HPE
  3. Sorted Squares
CodingReported in a candidate post, Sep 2022

Sorted Squares

Filed under HPE

The question

Given an array sorted in ascending order, return an array of the squares of the elements, also in ascending order.

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

Related HPE questions

  • O(1) Erase from Beginning or End
  • Stack Binary Push Code Output
  • Quicksort Partition Index
  • Minimum Cost String Generation
  • Sum of Nobita Numbers
โ† Infinite Grid PathMatrix element transformation โ†’

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