CodeDaily
Topics
DSA
Arrays & Strings
Recursion
Trees & Graphs
Dynamic Programming
Linked Lists
View all →
Web Dev
Frontend
Backend
Full Stack
DevOps
APIs & REST
View all →
AI & ML
Machine Learning
Deep Learning
Computer Vision
NLP
Data Science
View all →
Blockchain
Smart Contracts
DeFi
Web3
Solidity
NFTs & Tokens
View all →
Questions
Level 1 · Easy
Patterns
Linked Lists
Stacks and Queues
Binary Tree
Graphs
2D Arrays
Hashmap And Heap
All Level 1 →
Level 2 · Medium
Arrays and Strings
Dynamic Programming
Trees
Graphs
Linked List
Stacks
Bit Manipulation
All Level 2 →
Level 3 · Hard
Maths
Segment Tree
Game Theory
Number Theory
Geometry
Digit DP
Range Queries
All Level 3 →
Compiler
Python
JavaScript
Java
C++
C
TypeScript
Go
Rust
Kotlin
Swift
Ruby
C#
Dart
PHP
Zig
Perl
Haskell
Julia
F#
OCaml
Pascal
COBOL
All languages →
Contests
Sign In
CodeDaily
Topics
DSA
Web Dev
AI & ML
Blockchain
Cybersecurity
Cloud
DevOps
Mobile
System Design
Questions
Level 1 · Easy
Patterns
Linked Lists
Stacks and Queues
Binary Tree
Graphs
2D Arrays
Hashmap And Heap
Level 2 · Medium
Arrays and Strings
Dynamic Programming
Trees
Graphs
Linked List
Stacks
Bit Manipulation
Level 3 · Hard
Maths
Segment Tree
Game Theory
Number Theory
Geometry
Digit DP
Range Queries
Compiler
Python
JavaScript
TypeScript
Java
C++
C
Go
Rust
Kotlin
Swift
Ruby
C#
Dart
PHP
Zig
Perl
Haskell
Julia
F#
OCaml
Pascal
COBOL
All languages →
Contests
Sign In
DSA
Level 1
Basics of Programming
Patterns
Pattern 3
Pattern 3
easy
Patterns
Question
Solve
Solutions
Python
Python
JavaScript
Java
C++
Run
I/O
Results
Input
5
Output
Click Run to execute
No submissions yet
Python
JavaScript
Java
C++
Previous
Pattern 2
Next
Pattern 4
Related Questions
easy
Pattern 1
easy
Pattern 2
easy
Pattern 4
easy
Pattern 5
easy
Pattern 6
easy
Pattern 7
easy
Pattern 8
easy
Pattern 9
easy
Pattern 10
easy
Pattern 11
easy
Pattern 12
easy
Pattern 13
easy
Pattern 14
easy
Pattern 15
easy
Pattern 16
easy
Pattern 17
Video Explanation
0:00 / 0:00