InterviewBit Problems
SUBTRACT : Solved
About the SUBTRACT : Solved category
(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)
My Python answer using queue and stack
(1)
My solution passed the compilation and correctness but I get Runtime Error. why ? (Java)
(1)
C/C++ solution of O(N) time and O(1) space
(1)
Java solution by splitting list in middle and reversing second half
(1)
Reversing the list and looping through the half of the list
(3)
My Algorithm to solve this problem
(1)
next page →