InterviewBit Problems   SUBTRACT : Solved


About the SUBTRACT : Solved category (1)
C++ soln using reversal of linked list (1)
Easy C++ Solution - Accepted (1)
Easy C++ Code SUBTRACT : Whats's wrong in my code giving wrong o/p (2)
C++ SUBTRACT - 3 stage (1)
Easy to understand code with Comments - C++ - O(n) time & O(1) space (1)
Java recursive solution O(n) time O(1) space with comments (2)
Java O(n) time O(1) space - fast -slow pointers - come to middle while reversing and go from middle to back while subsctracting (2)
Short and easy solution using DEQUE (1)
60 Lines code xD ;) , O(N) time & O(1) spcae BTW (1)
C++ | SUBTRACT | solve problem in 5 stages (1)
Recursion solution in cpp (1)
Simple solution by reversing the Linked LIst (1)
Easy solution using LL and stack (1)
Purely recursive solution without dividing the list in two and without using any external stack or vector (1)
Easy C++ solution try it! (1)
Simple cpp solution with O(1) space (1)
O(n) solution in c++ look into it (1)
Easy stack based solution (1)
C++ Solution O(1) in space and O(n) in time (1)
Java son o(n) space and time (1)
SUBTRACT - SOLVED PYTHON USING HASH TABLE O(n) time and space O(n) (1)
C++ O(n) approach : reverse two times (1)
Ruby O(N) Time, O(1) Space. Reversing back half of list. Modular Code (1)
Using recursion O(N) Time (1)
Solution using stack through list (1)
Cpp solution with O(n) approach (1)
Java solution with O(n) space and time (1)
Is it possible to solve this problem in O(1) extra space and O(n) time? (3)
Stack based c++ solution (1)