genisis0x / 42_Exam-C-Intermediate

Exam Prep Guide for Intermediate C Exam (42 student as a Cadet) - 42 School Silicon Valley πŸ’€πŸ˜Ž πŸ‘½πŸΌ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

! If you want to contribute then please fork the repo make new Branch by the name of
! "Level_ProblemName_{Intra Name}" and provide the PR of your solution with a detail explanation.
- ! ALERT
+ Success will be considered if below points is taken into account.
@@ All test cases got passed. @@ 
@@ Solution should be in C language only. @@
@@ 42 school header included. @@
@@ Code should have valid comments. @@
@@ PR (Pull Request) should be explained correctly. @@

- => If you found helpful then please do follow and give a star 

✌️ πŸ™Œ

    For Donation please use below address
    0xF164A4DE04D55f268AdB795434BcE932Ea8Db731

42_Exam-C-Intermediate--ExamShell

Repository is used for the prepration of C - Intermediate examshell in 42 School - Silicon Valley.It contains all of the Intermediate Questions and solutions to it.

Solution provided are fully tested and written by me, for some problem's there are more then one solution.

For better understanding pull the work and use debugger(LLDB or GBD) to see how each step works. Any suggestion's will be highly appreciated. -_-

42 Intra Name -> maparmar
Email -> πŸ“§
INTRA SNIPPET:

Screen Shot 2019-05-30 at 11 40 44 PM

LLDB Basic Working Steps:imp:

  1. gcc -Wall -Wextra -Werror filename.c -g
  2. lldb ./a.out -- > Used to go into LLDB mode.
  3. b main --> to set breakpoint
  4. r --> run
  5. gui ---> Graphic User Interface.
  6. use 's' key to go to each next step.

Steps to clone the work

  1. cd ~
  2. git clone https://github.com/Manmeet2018/C--Intermediate--Exam--42--.git
  3. cd C--Intermediate--Exam--42--.git
  4. Search Questions as per level.
  5. Located at various directory distinguished by there difficulty levels and see the subject.en.txt to undertsand the question and for solutions see the *.c files and there working.

^-^ Status Report πŸ’€

char *:star2: = "Good_Question's";
char *:smiling_imp: = "Very_Good_question's";

Subject Status level 0 βœ”οΈ πŸ’―

  1. count_of_2 -> βœ…
  2. equation -> βœ…
  3. find_pivot -> βœ…
  4. is_anagram -> βœ… solution with file is_anagram1.c is of time complexity O(N) and Space Complexity O(1) using XOR hack.
  5. print_doublon -> βœ…

Subject Status level 1 βœ”οΈ πŸ’―

  1. count_alpha -> βœ…
  2. flood_fill -> βœ…
  3. height_tree -> βœ…
  4. queue -> βœ…
  5. stack -> βœ…

Subject Status level 2 βœ”οΈ πŸ’―

  1. longest_sequence -> βœ…
  2. ord_alphalong -> βœ…
  3. reverse_tree -> βœ…
  4. str_maxlenoc -> βœ… good solution Using Dp for LCS(Lowest Common String) 🌟 🌟 // Pending solution -> LCS using segment tree O(N).
  5. is_looping βœ…

Subject Status level 3 βœ”οΈ πŸ’―

  1. can_split -> βœ…
  2. perimeter -> βœ…
  3. width_tree -> βœ…
  4. convert_bst-> βœ…
  5. gold_gain -> βœ… -> Good solution Done with using space Complexity of O(M * N) and time complexity of O(M * N). 🌟 🌟 🌟 🌟

Subject Status level 4 βœ”οΈ πŸ’―

  1. clone_list -> βœ… time complexity of O(N) -> "N" no of elements in list
  2. intersection -> βœ… time complexity of O(M) -> "M" highest size of list
  3. longest_subarray -> βœ… time complexity of O(M * N) -> Short (good solution) using -1 for odd and 1 for even number.
  4. range_comb -> #### Remaing 🌟
  5. volume_histogram -> βœ… time complexity of O(N) and Space complexity of O(1) 🌟 🌟 🌟 -> Best Solutuon :D

Subject Status level 5 🌟 🌟 βœ”οΈ

  1. count_island -> #### Remaing
  2. g_diam -> βœ… 😈
Method 1: (used Backtracking and Basic adjacent matrix graph representation) -> Time complexity-- O(V * V) & Space Complexity-- O(V).
Method 2: 😈 (used Backtracking and Basic Adjacency list graph representation) -> Time complexity-- O(V + E) & Space Complexity-- O(V).
  1. infin_add -> βœ… --> time complexity O(N) -> N highest size between two strings 😈
  2. infin_mult -> βœ… --> time complexity O(N * M)and Space Complexity of O(M + N) 😈

About

Exam Prep Guide for Intermediate C Exam (42 student as a Cadet) - 42 School Silicon Valley πŸ’€πŸ˜Ž πŸ‘½πŸΌ


Languages

Language:C 100.0%