A résolu


You LOVES Matlab 41%
Given two strings, determine the percentage that one loves the other in the following way: YOU LOVES MATLAB there is 1 '...

plus de 2 ans il y a

A résolu


Fractal: area and perimeter of Koch snowflake
Starting from an equilateral triangle with side 's', what is the area and perimeter of Koch snowflake at n'th recursive iteratio...

plus de 2 ans il y a

A résolu


The twelve days of Christmas
Traditionally there are twelve days of Christmas to celebrate ("Twelvetide"), typically starting with Christmas Day (25 December...

plus de 2 ans il y a

A résolu


Most Frequent Word - 01
Given a document file or a character array, find out the most frequent word in that document. In the case of multiple words -...

plus de 2 ans il y a

A résolu


How many days?!?
Christmas is coming earlier and earlier each year. Thanks to rampant commercialism and Christmas Creep, "The Twelve Days of Chr...

plus de 2 ans il y a

A résolu


Determine when snow started
R.P. Agnew posed the following problem: It starts snowing in the morning and continues steadily throughout the day. A snowplow t...

plus de 2 ans il y a

A résolu


How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

plus de 2 ans il y a

A résolu


first step for Huffman Coding (easy)
Given a string, you must sort the characters by occurrence (from lowest to highest). This step is necessary to generate a Huf...

plus de 2 ans il y a

A résolu


Array Height (no usage of size)
Find the array height, the number of rows. Size may not be used.

plus de 2 ans il y a

A résolu


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

plus de 2 ans il y a

A résolu


String vowel manipulation
Given a string, find all the vowels and shift them to the end of the string in the same order as they are found.

plus de 2 ans il y a

A résolu


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

plus de 2 ans il y a

A résolu


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

plus de 2 ans il y a

A résolu


Find the function 2
Given a set of point (x,y) and the coordinate x of a new point, find the y value of new point. Test Suite is based on only one ...

plus de 2 ans il y a

A résolu


Would Homer Like It?
Given a matrix of ones and zeros, you must determine if there are any doughnuts present (would Homer Simpson like it?). A doug...

plus de 2 ans il y a

A résolu


Find the right number make the equation
Given positive integer number n, find the right positive integer number a, b , so that (1) sqrt(a + n * b) is a positive inte...

plus de 2 ans il y a

A résolu


Find mass of single floor in building
A model building has three floors are highlighted in different colours here: Assu...

plus de 2 ans il y a

A résolu


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

plus de 2 ans il y a

A résolu


Memory Map File: Access and Update
Challenge is to read data from a memory map file and also update the file. Memory Mapping allows placing large static arrays ...

plus de 2 ans il y a

A résolu


JannaT is Loved By Me
JannaT was sTarTed loved by me and that time was in 2020. A year when JannaT will starT loving me when the year divided from th...

plus de 2 ans il y a

A résolu


Ordinary Annuity : Number of payments (Future Value)
Theorem : Future Value of an Ordinary Annuity where; F : Future value A : Periodic payment r : Rate per period n : Numbe...

plus de 2 ans il y a

A résolu


Get me!
Inspired by Now! problems. Do your best!

plus de 2 ans il y a

A résolu


Musical Note Interval 1 - Diatonic Scale
Assuming a simple diatonic C scale, calculate the interval (integer) between two notes (provided as strings). By applying number...

plus de 2 ans il y a

A résolu


掃き出し法を実装して、連立一次方程式を解いてみよう
※本問は、2023/7/24開催の、筑波大学でのセミナーのために作成した問題です。 掃き出し法を使った連立一次方程式の解法を穴埋めで実装してみましょう。 左辺と右辺を、それぞれ以下の行列Aおよび列ベクトルBで表したものが与えられたとします。この時、...

plus de 2 ans il y a

A résolu


Sum the two halves of an array with an even number of elements
given an array of an even number of elements, sum the front and back half of the array and return the sums as an array For exam...

plus de 2 ans il y a

A résolu


Neural Net: Calculate Perceptron
This challenge is to calculate the Neural Net Perceptron value,P, given X, WH, and WP using ReLU on the hidden layer. This examp...

plus de 2 ans il y a

A résolu


Wait a second!
Your code needs to take 'exactly' one second to run — accurate to ±0.5 milliseconds. The input will be the number of millis...

plus de 2 ans il y a

A résolu


Greed is good - Simple partition P[n].
Find a simple partition P[n]. E.g. P[10] = 4 + 3 + 2 + 1. There are many solutions, compute just one set. Don't repeat numbers...

plus de 2 ans il y a

A résolu


Calculate the volume of the intersection of two balls
Consider two balls (solid spheres) in , with radius and respectively. Suppose that the distance between the centers of the two...

plus de 2 ans il y a

A résolu


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

plus de 2 ans il y a

Charger plus