logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    tylerdee7
    Jul 23, 2020

    7/22 Homework: Data Structures

    in CS Fundamentals for ACSL

    The following list is a Stack. Solve the following problem:

    AABBCDA

    Pop()

    Pop()

    Push(A)

    Push(E)

    Pop()

    Push(D)

    Pop()

    Push(A)

    9 comments
    0
    kc5608
    Jul 23, 2020

    Kimi Chen

    ABBCDA

    BBCDA

    ABBCDA

    EABBCDA

    ABBCDA

    DABBCDA

    ABBCDA

    ABBCDA

    ANS : ABBCDA

    0
    yuyifei08
    Jul 23, 2020

    Pop(): ABBCDA

    Pop(): BBCDA

    Push(A): ABBCDA

    Push(E): EABBCDA

    Pop(): ABBCDA

    Push(D): DABBCDA

    Pop(): ABBCDA

    Push(A): AABBCDA

    0
    Andy Ding
    Jul 24, 2020

    ABBCDA

    0
    xunzhu0711
    Jul 25, 2020

    ABBCDA BBCDA ABBCDA EABBCDA ABBCDA DABBCDA ABBCDA ABBCDA ANS : ABBCDA

    0
    ray.royw
    Jul 25, 2020

    ABBCDA

    BBCDA

    ABBCDA

    EABBCDA

    ABBCDA

    DABBCDA

    ans, ABBCDA

    0
    cedricswang
    Jul 25, 2020

    ABBCDA

    BBCDA

    ABBCDA

    EABBCDA

    ABBCDA

    DABBCDA

    ans, ABBCDA

    0
    haysze482
    Jul 25, 2020

    ABBCDA

    0
    lichencui
    Jul 25, 2020

    Jasmine Cui:

    AABBCDA

    =ABBCDA

    =BBCDA

    =ABBCDA

    =EABBCDA

    =ABBCDA

    =DABBCDA

    =ABBCDA

    =AABBCDA


    AABBCDA

    0
    voyinger
    Jul 30, 2020

    AABBCDA

    AABBCD Pop()

    AABBC Pop()

    AABBCA Push(A)

    AABBCAE Push(E)

    AABBCA Pop()

    AABBCAD Push(D)

    AABBCA Pop()

    AABBCAA Push(A)


    ans: AABBCAA, assume the top is end of the list

    0
    9 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners