0 0 votes closed as a duplicate of: The running time of an algorithm is given by T(n) = T(n-1) + T(n-2) - T(n-3) , if n>3 How to solve it using substitution method ? Algorithms time-complexity algorithms + – ankitgupta.1729 874 views comment Share Follow Print See all 2 Comments 2 2 Comments reply Shubhanshu commented Nov 15, 2017 reply Follow flag I am getting O(3^n). 0 0 replyShare Anu007 commented Nov 15, 2017 reply Follow flag n.......... 0 0 replyShare Please log in or register to add a comment.