← HSBC questions
CodingEasyReported in a candidate post, Nov 2019

Rearrange positive and negative numbers inline

Filed under HSBC

Given an array of positive and negative integers, rearrange the elements in-place so that all negative integers appear before all positive integers. The relative order of the negative and positive…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related HSBC questions

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