Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d190884

Browse files
committed
added complexity chapter and its content
1 parent 992d701 commit d190884

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

‎en/SUMMARY.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@
141141
- [Velocity JS](animation-resources/velocityjs.md)
142142
- [React Spring](animation-resources/react-spring.md)
143143
- [Framer Motion](animation-resources/framer-motion.md)
144+
- [Complexity](complexity/README.md)
145+
- [Space Complexity](complexity/space-complexity.md)
146+
- [Time Complexity](complexity/time-complexity.md)
144147
- [JavaScript Behind the Scenes](behind-scenes/README.md)
145148
- [Call Stack](behind-scenes/call-stack.md)
146149
- [Engine](behind-scenes/engine.md)

‎en/complexity/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
layout: editorial
3-
chapter: 8
4-
pageNumber: 53
3+
chapter: 27
4+
pageNumber: 258
55
description: Analyzing an algorithm's efiiciency is most important part of writing an optimal program. This chapter deep dives into analayzing the efficiency by understanding the space and time complexity.
66
---
77

8-
# Chapter 8
8+
# Chapter 27
99
# Complexity
1010

1111
From previous chapter you should have understood how to create an algorithm. In this chapter, we will explore the intricacies of algorithmic complexity in JavaScript.

‎en/complexity/time-complexity.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ The code takes n steps to run. Instead of using just plain n for time complexity
5151
Some common types of Big O notations are as follows:
5252

5353
- O(log n) - logarithmic time complexity
54-
- O($n^2$) - quadratic time complexity
54+
- O(n^2) - quadratic time complexity
5555
- O(n) - linear time complexity
5656
- O(1) - constant time complexity

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /