Community Profile

photo

Roie Knaanie


Hebrew University of Jerusalem

Aktiv seit 2022

Followers: 0   Following: 0

Lecturer at the Hebrew University of Jerusalem, Software and Programming languages

Programming Languages:
Python, Java, MATLAB, Perl
Spoken Languages:
English
Professional Interests:
Python with MATLAB, Algorithm Acceleration and Code Generation, Computational Biology, Computer Science

Statistiken

  • MATLAB Central Treasure Hunt Finisher
  • Scholar
  • Quiz Master
  • Indexing II Master
  • Matrix Patterns III Master
  • Draw Letters
  • Speed Demon
  • Creator
  • CUP Challenge Master
  • Cody 10th Anniversary 10-Day Streak
  • Introduction to MATLAB Master
  • Project Euler I

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

etwa 6 Stunden vor

Gelöst


Swap between columns
The idea is to swap between second and second last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

etwa 6 Stunden vor

Gelöst


Remove a specific character with another
Remove any (-) dash sign with (_) underscore Ex = 'The-Journey-of-thoudsands-miles-starts-with-a-single-step' y = 'The_Jour...

etwa 6 Stunden vor

Gelöst


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

etwa 6 Stunden vor

Gelöst


Swap between first and last
The idea is to swap between first and last row Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

etwa 6 Stunden vor

Gelöst


Swap between first and last column
The idea is to swap between first and last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 ...

etwa 6 Stunden vor

Gelöst


Swap between rows
The idea is to swap between second and second last row Ex = [1 2 3 4 5; 5 4 3 2 1; 1 2 3 4 5; 1 2 3 4 5; ...

etwa 7 Stunden vor

Gelöst


Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = 2...

ein Tag vor

Gelöst


Space Saver
Remove all characters that are below a space in ASCII value.

ein Tag vor

Gelöst


Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...

ein Tag vor

Gelöst


Convert String to Morse Code
Convert a given string to international <http://en.wikipedia.org/wiki/Morse_code Morse Code> * Strings will only have [A-z], ...

ein Tag vor

Gelöst


Decimal Comparison
*Background* A utility of particular interest to Cody and other MATLAB ventures is comparing the equality of two numbers. In ...

ein Tag vor

Gelöst


It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more here) asserted that readers are relatively insensitive to letter order in words, so long a...

ein Tag vor

Gelöst


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifm...

ein Tag vor

Gelöst


Find matching parenthesis
One of the most indispensable things about a great text editor for programming is the ability to quickly jump between matching p...

ein Tag vor

Gelöst


Add more zeros
Find code that adds one 0 to each sequence of 0 in a string (composed with only 0 or 1). For example: '1010' -> '100100' ...

ein Tag vor

Gelöst


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

2 Tage vor

Gelöst


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

2 Tage vor

Gelöst


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

2 Tage vor

Gelöst


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

2 Tage vor

Gelöst


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

2 Tage vor

Gelöst


cube of number
find cube of number

2 Tage vor

Gelöst


square of a number
find square of a given number

2 Tage vor

Gelöst


Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

2 Tage vor

Gelöst


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

2 Tage vor

Gelöst


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

3 Tage vor

Gelöst


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

3 Tage vor

Gelöst


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input is n=4 th...

3 Tage vor

Gelöst


find number of times of occurrence of the most frequent number in a row vector
In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

3 Tage vor

Gelöst


Find prime number couples
Given a vector a, which will always contain at least one pair of prime numbers couple, return a matrix called 'couple' in which ...

3 Tage vor

Mehr laden