lisa

Crates.iolisa
lib.rslisa
version0.2.0
sourcesrc
created_at2021-12-29 10:59:03.533093
updated_at2021-12-30 00:40:18.332349
descriptionlisa - longest increasing subsequence algorithm [ O( nlogn ) ]
homepage
repositoryhttps://github.com/LittleTasteOfHeaven/rusty-algos/tree/master/problems/lisa
max_upload_size
id504768
size4,892
Tausif (tausifcreates)

documentation

https://docs.rs/lisa

README

What it does

Finds the longest increasing subsequence (lis).

Features

  1. Time complexity O(nlogn)
  2. Space complexity O(n)
  3. Supports multiple types

Version Note : Update Readme and description

Example

use lisa::interface::find_lis;

fn main() {
	let slice = [3, 10, 2, 1, 20];
	
	let lis = find_lis(&slice);

	println!("{:?}", lis); // [3, 10, 20]
 }
Commit count: 0

cargo fmt