JobsJob TrackerJob alerts

Vyapar ยท 11 questions

All 11Coding 7Low-Level Design 1
  • Maximum value of an expression over an array (two-pointer)Coding
  • Repeatedly combine two elements with a bit operationCoding
  • Sort an array of 0s, 1s and 2sCoding
  • Sum of two linked listsCoding
  • Design tables for a many-to-many mappingLow-Level Design
  • Polymorphism, abstraction and the four pillars of OOP
  • Struct vs union vs class; malloc vs calloc vs new
  • DBMS: normalization, joins and ACID
  • Online Coding Assessment on HackerEarthCoding
  • Technical Interview 1: DSA and Database DesignCoding
  • Technical Interview 2: BFS, Matrix, and CS FundamentalsCoding
โ† Vyapar questions
  1. Interview questions
  2. Vyapar
  3. Repeatedly combine two elements with a bit operation
CodingMedium-HardReported in a candidate post, Jan 2023

Repeatedly combine two elements with a bit operation

Filed under Vyapar

The question

Repeatedly pick two array elements, apply a bit operation and replace them with the result. The post says the answer comes down to the XOR of the whole array.

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

Related Vyapar questions

  • Maximum value of an expression over an array (two-pointer)
  • Online Coding Assessment on HackerEarth
  • Technical Interview 1: DSA and Database Design
  • Technical Interview 2: BFS, Matrix, and CS Fundamentals
โ† Maximum value of an expression over an array (two-pointer)Sort an array of 0s, 1s and 2s โ†’

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