Code Monkey home page Code Monkey logo

startx-assignment's Introduction

StartxLabs

In this Repo, I solved my assignment for the javascript developer post.

problem 1

Get number of hours, minutes and seconds from number of seconds.
For example : If number of seconds provided are 129 ,
then number of hours will be 0 , minutes 2, seconds 9.
Input : Number of seconds.
Output : “Hours = ‘number of hours’, minutes = ‘number of minutes’ , seconds = ‘number of seconds’ ”

problem 2

You are given two numbers L and R, you have to find if XOR of all the numbers in range L to R (L,R both inclusive) is odd or even.
Input:
The first line will contain T, number of testcases.
Each testcase contains a single line of input, two integers L,R.

Output:
For each testcase, in the new line print "Odd" if the XOR in the range is odd, else print "Even".
Sample Input:
4
1 4
2 6
3 3
2 3
Sample Output:
Even
Even
Odd
Odd

problem 3

You are given with T number of strings. You need to sort the strings according to their first character.
Input :
4
“AXXX”
“UVVVV”
“PGGGG”
“BOOUU”

Output :
“AXXX”
“BOOUU”
“PGGGG”
“UVVVV”

startx-assignment's People

Contributors

join2akshay 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.