motaylormo / 42-Intermediate-Exam

Moulinette-passing versions of Intermediate Exam questions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

42-Intermediate-Exam

Moulinette-passing versions of Intermediate Exam questions.

Questions

Table conventions

Trace test accessibility

When I look at the trace for this question, can I tell what the tests are?

  • ๐Ÿ“‚ Yes, the tests are accessible.
  • ๐Ÿ”’ No, the tests are locked away in files. It might look something like:
= Test 1 ===================================================
$> ./3sdnrgu2oip0738azjrotz8n test_correct_a_00.txt test_correct_b_00.txt
$> diff -U 3 user_output_test1 test1.output | cat -e
  • ๐Ÿ”ฎ The trace show something, but not enough to recreate the test ourselves. This is particularly common among questions that take structs as input.

Program vs function

  • โš™๏ธ Function
  • ๐Ÿ“Ÿ Whole program
level question solved? program/
function
trace test
main
0 count_of_2 โœ… โš™๏ธ ๐Ÿ“‚ โœ…
0 equation โœ… โš™๏ธ ๐Ÿ“‚ โœ…
0 find_pivot โœ… โš™๏ธ ๐Ÿ”’ โœ…
0 is_anagram โœ… โš™๏ธ ๐Ÿ”’ โœ…
0 print_doublon โœ… โš™๏ธ ๐Ÿ”’ โœ…
1
1 count_alpha โœ… ๐Ÿ“Ÿ ๐Ÿ“‚ ๐Ÿ“‹
1 flood_fill โœ… โš™๏ธ ๐Ÿ”’ โœ…
1 height_tree โœ… โš™๏ธ ๐Ÿ”ฎ ๐Ÿšซ
1 queue โœ… โš™๏ธ ๐Ÿ”ฎ ๐Ÿšซ
1 stack โœ… โš™๏ธ ๐Ÿ”ฎ ๐Ÿšซ
2
2 is_looping โœ… โš™๏ธ ๐Ÿ”ฎ โœ…
2 longest_sequence โœ… โš™๏ธ ๐Ÿ”ฎ โœ…
2 ord_alphlong โœ… ๐Ÿ“Ÿ ๐Ÿ“‚ ๐Ÿ“‹
2 reverse_tree โœ… โš™๏ธ ๐Ÿ”ฎ โœ…
2 str_maxlenoc โœ… ๐Ÿ“Ÿ ๐Ÿ“‚ ๐Ÿ“‹
3
3 can_split โœ… โš™๏ธ ๐Ÿ”ฎ โœ…
3 convert_bst โœ… โš™๏ธ ๐Ÿ”ฎ ๐Ÿšซ
3 gold_gain โœ… โš™๏ธ ๐Ÿ”’ โœ…
3 perimeter โœ… โš™๏ธ ๐Ÿ”ฎ โœ…
3 width_tree โœ… โš™๏ธ ๐Ÿ”ฎ โœ…
4
4 clone_list โœ… โš™๏ธ ๐Ÿ”ฎ ๐Ÿšซ
4 intersection โœ… โš™๏ธ ๐Ÿ”ฎ ๐Ÿšซ
4 longest_subarray โœ… โš™๏ธ ๐Ÿ“‚ โœ…
4 range_comb ๐Ÿšซ โš™๏ธ ๐Ÿ“‚ โœ…
4 volume_histogram โœ… โš™๏ธ ๐Ÿ“‚ โœ…
5
5 count_island โœ… ๐Ÿ“Ÿ ๐Ÿ”’ ๐Ÿ“‹
5 g_diam ๐Ÿšซ ๐Ÿ“Ÿ ๐Ÿ“‚ ๐Ÿ“‹
5 infin_add โœ… ๐Ÿ“Ÿ ๐Ÿ“‚ ๐Ÿ“‹
5 infin_mult โœ… ๐Ÿ“Ÿ ๐Ÿ“‚ ๐Ÿ“‹

Concepts:

hash table

  • is_anagram
  • count_alpha

implementing data structure

  • queue
  • stack

linked lists

  • is_looping
  • convert_bst (doubly-linked list)
  • clone_list (tetinically doubly-linked list, but really singly-linked list plus weird other)
  • intersection

trees

N-ary tree

  • height_tree

binary tree

  • longest_sequence
  • reverse_tree
  • can_split
  • perimeter
  • width_tree

binary search tree (BST)

  • convert_bst

About

Moulinette-passing versions of Intermediate Exam questions.


Languages

Language:C 100.0%