Skip to main content

Light OJ-1085

Problem No- 1085 (All Possible Increasing Subsequences)

This is an interesting data structure based problem.It can be solved by segment tree or Binary Index Tree(BIT). Here numbers can be both negative and positive. If we want to solve with BIT then we need to compressed the array. After that we can easily solve this problem using BIT.


Here is the solution (BIT)-My Solution

Comments

Popular posts from this blog

Interview Topics

Object-Oriented Programming  1. GeeksforGeeks                                         2.OPPs interview Java Concept 1. Basic Principles                                      2. Memory Management          3. Interview Questions                            4. SOLID 5. CppNuts                                                 6.Java Guides*** Networking 1. Java Socket                                           2.Kunal Kushwaha Layer, TCP, UDP Operating System   1.Farhan Hossan ...

Resources for Programming Contest

Some important resources:                                           BAPS-BACS 1.CPPS                                                           7.Problem Solving Strategies 2.Beginner to Expert                                     8.An Awesome Blog for Programming 3.Bangla Resources                                      9.Ahnaf's Bangla Blog 4.Collection of Shakkhar                              10. Collection of UpsideDown ...

Web Development

Basic for Front End and Backend 1.JavaScriptInfo                                                                         2.Sumit 3.Apna College***                                                                          4. W3School 5.Mosh