brightlightkim

  • 홈
  • 태그
  • 방명록

Queue 2

[Stacks and Queues] CCI 3.1

Question: Three in One: Describe how you could use a single array to implement three stacks. My Thought Process: The first one is from the beginning. The middle one The last one is from the end. Problem: Stack will not have an equal size. Answer: Stack 1: [0, n/3] Stack 2: [n/3, 2n/3] Stack 3: [2n/3, n] Implementation: public class ThreeStackInOne { private int numberOfStacks = 3; private int st..

Algorithms and Data Structures/Coding Practices 2022.05.22

[Data Structures] Stacks and Queues

Stack (Last-In-First-Out) pop(): remove the top item from the stack push(item): add an item to the top of the stack peek(): return the top of the stack isEmpty(): Return true if and only if the stack is empty Stack Features: It does not offer constant-time access to the ith item. However, it does allow constant-time adds and removes, as it doesn't require shifting elements around. public class M..

Algorithms and Data Structures/Data Structures 2022.05.22
1
더보기
프로필사진

Algorithms and Data Structures Research Blog https://www.linkedin.com/in/taeyang-kim/ https://github.com/brightlightkim

  • 분류 전체보기
    • Algorithms and Data Structu..
      • Algorithms
      • Data Structures
      • Coding Practices
    • AI
    • AWS
      • EC2
      • ECS
      • CDK
      • X-Ray
      • Cloud Practitioner Certific..
      • Global Infrastructure and R..
      • Networking
      • Storage and Databases
      • Security
      • Monitoring and Analytics
      • Pricing and Support
      • Migration and Innovation
    • Rust
    • Node.js
      • Jest
      • Joi
      • Express
    • Serverless
    • Docker
    • Mongo
    • React
      • Next.js
    • Vue.js
      • Vuex
      • Nuxt
    • Coding Languages
      • JavaScript
      • TypeScript
      • Python
    • Internet of Things (IoT)
      • Arduino
      • Circuits
    • Basic Coding Info
      • Git
      • Monorepo
    • Testing
    • Bug
      • Git
      • AWS
      • JavaScript
      • Node
    • BYU-Broadcast
      • ScreenSharing
      • Bi-Weekly Training
      • Sprint
    • Security
    • Flutter
    • Android_App
      • Front-end
      • Back-end
      • RxJava
    • Web
      • CSS

Tag

VUE, vue.js, node, Docker, Git, EC2, S3, AI, ECS, lambda, cdk, ML, serverless, BST, Amazon, JEST, AWS, vuex, Node.js, javascript,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바