Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Articles by Jiya Garg
2 articles
Longest consecutive subsequence in C++
Given an array of integers, determine the length of the longest subsequence where the elements are consecutive integers, regardless of their order within the subsequence. Input arr = {100, 4, 200, 1, 3, 2} Output Length of the longest consecutive sequence is: 4 Different approaches for longest consecutive subsequence The following are the approaches to get longest consecutive subsequence By sorting the Array By using Set Approach 1: By Sorting the ArrayBelow are the steps to get the longest consecutive subsequence in C++ using Array Sort ...
Read MoreClear bit ranges in given number in C++
Given a number n, write C++ program to clear bits in the given range between l and r. Where, 1
Read MoreShowing 1–2 of 2 articles
« Prev
1
Next »
Advertisements