# tuttelikz / MATLAB-Cody

Solutions to all problems for MATLAB Cody Challenge 👓 💻 🔑
MATLAB M
Latest commit 0ad734c Aug 23, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information. functions Aug 23, 2019 LICENSE Jul 8, 2019 Matlab_Logo.png Jul 7, 2019 README.md Aug 23, 2019

## Solutions to programming challenges on MATLAB Cody #### Description:

This repository contains 94 out of 94 solutions to MATLAB Cody practice problems with MATLAB language

• Problems are sorted from greater number of solvers to lower, representing increasing complexity.
• Solutions are correct and commented, but not the most efficient.

Inspiration:
Thanks to @marinskiy for `HackerrankPractice`

#### Contents:

Solvers ↓ Likes Order Problem description
33,022 112 Problem 1 Times 2 - START HERE 🔗
27,087 81 Problem 2 Make the vector [1 2 3 4 5 6 7 8 9 10] 🔗
23,225 51 Problem 3 Find the sum of all the numbers of the input vector 🔗
20,509 56 Problem 8 Add two numbers 🔗
16,120 81 Problem 26 Determine if input is odd 🔗
14,928 59 Problem 6 Select every other element of a vector 🔗
12,980 50 Problem 5 Triangle Numbers 🔗
10,965 36 Problem 17 Find all elements less than 0 or greater than 10 and replace them with NaN 🔗
10,038 142 Problem 4 Make a checkerboard matrix 🔗
9,098 31 Problem 19 Swap the first and last columns 🔗
8,527 44 Problem 10 Determine whether a vector is monotonically increasing 🔗
7,859 56 Problem 12 Fibonacci sequence 🔗
7,035 41 Problem 33 Create times-tables 🔗
6,488 42 Problem 23 Finding Perfect Squares 🔗
5,665 50 Problem 25 Remove any row in which a NaN appears 🔗
5,593 25 Problem 14 Find the numeric mean of the prime numbers in a matrix 🔗
5,324 47 Problem 9 Who Has the Most Change? 🔗
4,929 27 Problem 32 Most nonzero elements in row 🔗
4,886 49 Problem 21 Return the 3n+1 sequence for n 🔗
4,564 22 Problem 20 Summing digits 🔗
3,679 12 Problem 22 Remove the vowels 🔗
3,597 16 Problem 30 Sort a list of complex numbers based on far they are from the origin 🔗
3,213 60 Problem 18 Bullseye Matrix 🔗
3,158 14 Problem 39 Which values occur exactly three times? 🔗
3,120 46 Problem 60 The Goldbach Conjecture 🔗
2,923 16 Problem 16 Return the largest number that is adjacent to a zero 🔗
2,797 21 Problem 94 Target sorting 🔗
2,580 24 Problem 29 Nearest Numbers 🔗
2,392 13 Problem 37 Pascal's Triangle 🔗
2,358 7 Problem 13 Remove all the consonants 🔗
2,246 30 Problem 15 Find the longest sequence of 1's in a binary sequence 🔗
2,117 10 Problem 41 Cell joiner 🔗
1,909 6 Problem 42 Find the alphabetic word product 🔗
1,841 18 Problem 27 Pangrams! 🔗
1,813 17 Problem 34 Binary numbers 🔗
1,811 7 Problem 28 Counting Money 🔗
1,672 18 Problem 46 Which doors are open? 🔗
1,617 11 Problem 73 Replace NaNs with the number that appears to its left in the row. 🔗
1,533 11 Problem 48 Making change 🔗
1,500 16 Problem 74 Balanced number 🔗
1,462 5 Problem 35 Quote Doubler 🔗
1,442 8 Problem 76 De-dupe 🔗
1,329 10 Problem 62 Elapsed Time 🔗
1,248 9 Problem 40 Reverse Run-Length Encoder 🔗
1,160 10 Problem 38 Return a list sorted by number of occurrences 🔗
1,151 6 Problem 72 Interpolator 🔗
1,131 4 Problem 51 Find the two most distant points 🔗
1,113 4 Problem 44 Trimming Spaces 🔗
1,085 9 Problem 45 Make a Palindrome Number 🔗
1,050 10 Problem 59 Pattern matching 🔗
992 5 Problem 57 Summing Digits within Text 🔗
992 3 Problem 87 Indexed Probability Table 🔗
960 11 Problem 31 Remove all the words that end with "ain" 🔗
940 9 Problem 49 Sums with Excluded Digits 🔗
922 1 Problem 47 Extract leading non-zero digit 🔗
910 4 Problem 50 QWERTY coordinates 🔗
895 11 Problem 64 The Goldbach Conjecture, Part 2 🔗
820 50 Problem 24 Function Iterator 🔗
805 3 Problem 53 Duplicates 🔗
767 5 Problem 54 Maximum running product for a string of numbers 🔗
717 8 Problem 67 Find common elements in matrix rows 🔗
703 6 Problem 70 Alphabetize by last name 🔗
700 10 Problem 80 Test for balanced parentheses 🔗
696 17 Problem 43 Subset Sum 🔗
692 9 Problem 69 Find the peak 3n+1 sequence value 🔗
678 7 Problem 56 Scrabble Scores 🔗
673 17 Problem 68 Kaprekar Steps 🔗
642 7 Problem 71 Read a column of numbers and interpolate missing data 🔗
624 7 Problem 78 Implement a ROT13 cipher 🔗
610 4 Problem 36 Find relatively common elements in matrix rows 🔗
597 7 Problem 55 Counting Sequence 🔗
583 1 Problem 77 Clean the List of Names 🔗
521 2 Problem 66 Find the two-word state names 🔗
513 5 Problem 86 Renaming a field in a structure array 🔗
512 10 Problem 83 Prime factor digits 🔗
509 5 Problem 61 Find state names that end with the letter A 🔗
508 13 Problem 58 Tic Tac Toe FTW 🔗
500 6 Problem 89 Counting in Finnish 🔗
485 1 Problem 63 Encode Roman Numerals 🔗
472 7 Problem 88 It dseon't mettar waht oedrr the lrettes in a wrod are 🔗
449 4 Problem 82 Remove the small words from a list of words 🔗
448 4 Problem 75 Find the palindrome 🔗
440 1 Problem 92 Find state names that start with the letter N 🔗
425 1 Problem 85 Remove the polynomials that have positive real elements of their roots 🔗
400 1 Problem 91 Get the area codes from a list of phone numbers 🔗
399 18 Problem 52 What is the next step in Conway's Life? 🔗
396 4 Problem 81 Mandelbrot Numbers 🔗
382 5 Problem 65 Word Counting and Indexing 🔗
381 3 Problem 79 DNA N-Gram Distribution 🔗
337 11 Problem 96 Knight's Tour Checker 🔗
322 6 Problem 84 Longest Divisor Run 🔗
317 12 Problem 90 Connect Four Win Checker 🔗
290 7 Problem 93 Calculate the Levenshtein distance between two strings 🔗
288 8 Problem 95 Given two strings, find the maximum overlap 🔗

#### Contacts:

If you would like to contribute, you are free to contact:
Github: @tuttelikz
Mathworks: @tuttelikz