Skip to content

tobchen/hwifo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Halfway In, First Out (HWIFO)

A HWIFO is an abstract data type that collects elements in the order they were pushed on but allows only to remove elements from the middle, meaning that from a HWIFO of length n calling pop would remove the n/2th element.

While it is guaranteed to remove the middle element in an odd list it is not defined whether the n/2th or the n/2+1th would be removed in an even list.

This repository collects HWIFO implementations in various programming languages.

Methods

A HWIFO's methods are similar to those of a queue or stack:

  • push an element to the end of the HWIFO
  • peek the middle element of the HWIFO
  • pop the middle element of the HWIFO

Applications

Literally none.

About

A collection of "halfway in, first out (HWIFO)" abstract data type implementations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published