Home Reference Source
import {Stacks} from 'dsa-gfg/src/stack/two-stacks.ts'
public class | source

Stacks

Method Summary

Public Methods
public

pop1(sq: TwoStack): *

public

pop2(sq: TwoStack): *

public

push1(x: number, sq: TwoStack)

public

push2(x: number, sq: TwoStack)

Public Methods

public pop1(sq: TwoStack): * source

Params:

NameTypeAttributeDescription
sq TwoStack

Return:

*

public pop2(sq: TwoStack): * source

Params:

NameTypeAttributeDescription
sq TwoStack

Return:

*

public push1(x: number, sq: TwoStack) source

Params:

NameTypeAttributeDescription
x number
sq TwoStack

public push2(x: number, sq: TwoStack) source

Params:

NameTypeAttributeDescription
x number
sq TwoStack