JobsJob TrackerJob alerts

Komli Media ยท 12 questions

All 12Coding 12
  • Box counting puzzleCoding
  • Find first occurrence of 1 in a sorted bit sequenceCoding
  • Shorten string based on consecutive run parameterCoding
  • Divide two numbers using addition and subtractionCoding
  • Railway bridge train puzzleCoding
  • Product of array elements except self without divisionCoding
  • Find all possible sets of numbers that sum to nCoding
  • Kth smallest elementCoding
  • Check if Linked List is PalindromeCoding
  • Level order traversal in spiral formCoding
  • Sort an array in waveformCoding
  • QuickSortCoding
โ† Komli Media questions
  1. Interview questions
  2. Komli Media
  3. Divide two numbers using addition and subtraction
Coding

Divide two numbers using addition and subtraction

Filed under Komli Media

The question

Write a function to divide two numbers up to a precision of 4 decimal places using only addition and subtraction operators.

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

Related Komli Media questions

  • Box counting puzzle
  • Find first occurrence of 1 in a sorted bit sequence
  • Shorten string based on consecutive run parameter
  • Railway bridge train puzzle
  • Product of array elements except self without division
โ† Shorten string based on consecutive run parameterRailway bridge train puzzle โ†’

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