/Exercism

Exercism cpp problems.

Primary LanguageC++

Exercism

Exercism cpp problems.

https://exercism.org/profiles/Manoloon

Medium

  • Binary Search : Implement binary search algorithm
  • Circular Buffer : A circular buffer, cyclic buffer or ring buffer is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end.
  • Difference Of Square : Find the difference between the square of the sum and the sum of the squares of the first N natural numbers
  • Disjkstra Algorithm : is an algorithm for finding the shortest paths between nodes in a weighted graph.
  • List ops : Implement basic list operations.
  • Nth Prime : Given a number n, determine what the nth prime is.
  • Prime Factor : Compute the prime factors of a given natural number.
  • Prime Numbers : print n prime numbers.
  • Robot Simulator : The robots have three possible movements: turn right, turn left, advance.
  • Roman Numerals : Write a function to convert from normal numbers to Roman Numerals.
  • Sieve : Your task is to create a program that implements the Sieve of Eratosthenes algorithm to find prime numbers.
  • Simple Linked List : Write a prototype of the music player application. For the prototype, each song will simply be represented by a number. Given a range of numbers (the song IDs), create a singly linked list. Given a singly linked list, you should be able to reverse the list to play the songs in the opposite order.

Easy

  • Allergies : Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.
  • Amstrong Numbers : An Armstrong number is a number that is the sum of its own digits each raised to the power of the number of digits.
  • Atbash Cipher : Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East.
  • Binary : onvert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles.
  • Collatz conjeture : Take any positive integer n. If n is even, divide n by 2 to get n / 2. If n is odd, multiply n by 3 and add 1 to get 3n + 1.
  • Count Blocks of Ones : Given a sequence of numbers on a string count how many block of 1 contains.
  • Darts : Write a function that returns the earned points in a single toss of a Darts game.
  • Difference of Squares : Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.
  • Grade School : Given students' names along with the grade that they are in, create a roster for the school.
  • Grains : Calculate the number of grains of wheat on a chessboard given that the number on each square doubles.
  • Hamming : Calculate the Hamming Distance between two DNA strands.
  • Hexadecimal : Convert a hexadecimal number, represented as a string (e.g. "10af8c"), to its decimal equivalent using first principles.
  • Largest Series Product : Given a string of digits, calculate the largest product for a contiguous substring of digits of length n.
  • Leap : Given a year, report if it is a leap year.
  • Nucleotide Count : Given a string representing a DNA sequence, count how many of each nucleotide is present.
  • Pangram : Determine if a sentence is a pangram.
  • Pascal Triangle : Compute Pascal's triangle up to a given number of rows.
  • Perfect Number : Determine if a number is perfect, abundant, or deficient based on Nicomachus' (60 - 120 CE) classification scheme for positive integers.
  • Pop Count : count the number of 1 bits in the binary representation of a number.
  • Proteins Translation : Translate RNA sequences into proteins.
  • Queen Attack : Given the position of two queens on a chess board, indicate whether or not they are positioned so that they can attack each other.
  • Raindrops : Your task is to convert a number into a string that contains raindrop sounds corresponding to certain potential factors.
  • Reverse String : Reverse a string, for example: input: "cool" output: "looc".
  • RNA Transcription : Given a DNA strand, return its RNA complement (per RNA transcription).
  • Rotary Cipher : Create an implementation of the rotational cipher, also sometimes called the Caesar cipher.
  • Scrabble Score : Given a word, compute the Scrabble score for that word.
  • Secret Handshake : Convert a number between 1 and 31 to a sequence of actions in the secret handshake.
  • Space Age : Given an age in seconds, calculate how old someone would be.
  • Sum of Multiples : Given a number, find the sum of all the unique multiples of particular numbers up to but not including that number.
  • Three Sum : the 3SUM problem asks if a given set of n n real numbers contains three elements that sum to zero.(quadratic)
  • Triangles : Determine if a triangle is equilateral, isosceles, or scalene.
  • Trinary : Convert a trinary number, represented as a string (e.g. '102012'), to its decimal equivalent using first principles.
  • VisualPatterns : Draw some patterns with loops.

build externals

mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/path/to/your/desired/installation/directory .. cmake -G "MinGW Makefiles" .. mingw32-make after build with admin privileges: cmake --build . --target install