Skip to content

fenyx-it-academy/Class4-CS101Module-Week8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Class4-CS101Module-Week9

Question 1:

Implement a stack that supports push and pop operations using standard enqueue and dequeue operations of the queue.

Question 2:

Implement a queue using a single linked list. (Hint: Enqueuing happens at the tail of the list, and the dequeuing of items happens at the head of the list.)

Question 3:

Given a positive number n, efficiently generate binary numbers between 1 and n using the queue data structure in linear time.

Example:

Input:

n = 10

Output :

1 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111 10000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors