---
title: "Discussion on \"[TypeScript] 자료 구조로 담아내기. #4 - 배열(with. 시프트)\" | Hashnode"
description: "Discussion on \"[TypeScript] 자료 구조로 담아내기. #4 - 배열(with. 시프트)\". 이번 편은 이전 편으로부터 이어집니다.\n\n삽입과 삭제를 수행할 때는 일정 구간을 밀어내거나 당겨오게 됩니다. 이러한 연산을 일반적으로 시프트라 부릅니다.\n왼쪽 시프트\nfunction shl(mem: any[], l: number, r: number): void {\n    for(let i = l; i <= r; i++) { mem[i - 1] = mem[i]; }\n}\n\n왼쪽 시프트는 지정된 메모리 mem 중 l과 r로 지정된 범위를 왼쪽으로 한..."
url: "https://hashnode.com/posts/array-data-structure-4/67ba06d14982c03aa2cdcfbc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[TypeScript\] 자료 구조로 담아내기. #4 - 배열(with. 시프트)](https://koranidro.hashnode.dev/array-data-structure-4?utm_source=hashnode&utm_medium=feed)

이번 편은 이전 편으로부터 이어집니다. 삽입과 삭제를 수행할 때는 일정 구간을 밀어내거나 당겨오게 됩니다. 이러한 연산을 일반적으로 시프트라 부릅니다. 왼쪽 시프트 function shl(mem: any\[\], l: number, r: number): void { for(let i = l; i <= r; i++) { mem\[i - 1\] = mem\[i\]; } } 왼쪽 시프트는 지정된 메모리 mem 중 l과 r로 지정된 범위를 왼쪽으로 한...

Feb 22, 2025 · 2 min read · koranidro.hashnode.dev  
Updated Mar 1, 2025  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#array](https://hashnode.com/tag/array)
-   [#datastructure](https://hashnode.com/tag/datastructure)
-   [#shift](https://hashnode.com/tag/shift)
-   [#insertion](https://hashnode.com/tag/insertion)
-   [#deletion](https://hashnode.com/tag/deletion)

## Written by

[고라니드로](https://hashnode.com/@koranidro)

@koranidro

  
[View profile](https://hashnode.com/@koranidro)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
