Coder Social home page Coder Social logo

mcp-test-2021's Introduction

MCP-Test-2021

  1. We have array of integers called nums, write a function to return all numbers (in a form of array of integers) that when subtracted by any of integers in nums doesn't return number that is < 0 for example : nums = [3,1,4,2], your output should be : [4], because when 4 is subtracted by 3 or 1 or 4 or 2 doesn't return number that is < 0
  2. We have array of integers called nums and an integer called x, write a function to return all numbers (in a form of array of integers) that when divided by any of integers in nums doesn't return x for example : nums = [1,2,3,4], x = 4, your output should be : [1,2,3], because only 4 divided by 1 is 4 (x)
  3. We have a string called word and an integer called x, write a function to return an array of strings containing all strings that has length x. for example : word = "souvenir loud four lost", x = 4, your output should be ["loud", "four", "lost"] because those strings has length of 4

For screenshot test : screenshot_test.png
Trial Code (Compiler Online) : https://www.programiz.com/python-programming/online-compiler/

mcp-test-2021's People

Contributors

nazhanharzula avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.