Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitris Bekris committed Mar 8, 2023
2 parents badca09 + a98472d commit 94f6135
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BFS-StayHome/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BFS Flood-Fill
### BFS Flood-Fill

We have to save Swtiris. Due to Covid-19 lockdown, Swtiris has meen n in University and we must help him to go home. Covid polutes the area very fast.

Expand Down
2 changes: 1 addition & 1 deletion Powers of 2/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Numbers representation with powers of 2
### Numbers representation with powers of 2

Given a number N, 1 <= N <= 1.000.000.000
we have to find if N can be witten as the sum of exactly K powers of 2(1 <= K <= 200.000)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Problems through several programming languages

> - Representation of a number with powers of 2.
> - Implementation of BFS Algorithm in a funny version.
> - Implementation of BFS Algorithm in a funny version(StayHome).
> - DFS Implementation in a funny version detecting Corona Virus
> - Stacks finding Vaccine for Corona
9 changes: 9 additions & 0 deletions Stacks-Vaccine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Problem 2: Vaccine 💉 (Java Implementation)

Given a stack of RNA nitrogenous bases ("A", "U", "G", "C"), we consider the following possible moves that we can do, in order to create another stack in which all the nitrogenous bases of the given stack are in groups (all "A"s together, all "T"s together and so on). The moves are:

- "p" (push): removes the top base from the given stack and puts it on top of the new stack
- "c" (comlement): replaces all the bases from the given stack with their complementary ones ("A" ↔️ "U", "C" ↔️ "G")
- "r" (reverse): turns the new stack's content upside-down

The program should print the shortest (on a tie, the lexicographicaly smallest) sequence of moves that need to be done, in order the create the above mentioned stack.

0 comments on commit 94f6135

Please sign in to comment.