Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Temple - C Programming Assignment

Project Overview This project is a multi-task programming assignment designed to practice pointers, string manipulation, and dynamic memory allocation in C. The theme follows a journey through an ancient magic temple where various "mystic" puzzles must be solved through coding.

Assignment Structure The project is divided into three main tasks, each focusing on different programming concepts:

Task 1: Magic Words Navigate a square matrix of size N times M by decoding three types of "magic words" to determine the next move: Type 'a': Direction is determined by the maximum digit in a 4-digit sequence. Type 'b': Movement depends on whether a number K is a palindrome and if its last two digits X form a prime number. Type 'c': Direction is calculated using a circular sum S of digits based on a given step k.

Task 2: The Strange Voice Implement decryption algorithms to understand "encrypted" messages from the temple: Caesar Cipher: Decrypt text and numbers by "rotating" characters and digits based on a given integer key. Vigenère Cipher: Decrypt text and numbers using a keyword. Large Number Addition: Decrypt two large numbers (stored as strings) and calculate their sum. Note: Numbers must be handled as strings; conversion to int or long long is forbidden.

Task 3: The Helper Build a simplified Natural Language Processing (NLP) tool to calculate the frequency of 2-grams (sequences of two consecutive words) in a given text. Constraint: Only strings and vectors are allowed. Using other complex data structures will result in total loss of points for this task.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages