Giter Site home page Giter Site logo

hackerearthclub / code2race Goto Github PK

View Code? Open in Web Editor NEW
94.0 94.0 440.0 5.16 MB

Solve the problem. 😊 If you like ❀ give us a star⭐. HACKTOBERFEST

C++ 16.93% Python 35.54% Java 13.50% C 7.89% JavaScript 6.09% Assembly 0.04% Visual Basic 0.01% Ruby 0.96% Go 2.65% Swift 0.45% Kotlin 0.26% R 0.43% Objective-C 0.03% C# 0.35% PHP 0.54% Perl 0.10% Groovy 0.09% Scala 0.36% Rust 0.05% HTML 13.72%
algorithms angular angularjs babel bash c c-plus-plus csharp java java-8 javascript jquery kotlin latex python reactjs ruby sass scala swift

code2race's Introduction

Hello World. This is the change.

CODE2RACE --- Dive into a coding world

Gitter

Questions will be given as an issue. 😁😁

Access the problem statement in assignment subdirectory.

Submit your solutions as pull-requests to the solutions subdirectory in this repository. (i.e. submit your solution file in the SOLUTIONS subdirectory.)

You are free to choose any language you wish.

ADD YOUR OWN FILE OF CODE. No editings in the previous code.😊😊

You may also add reference of question you have solved in your PR description :

#[issue no]

Guidelines

Make a PR for the solution to the question, specify the issue number in the comment.

thanks!! :-)

IF YOU LIKE US, GIVE THIS REPOSITORY A ⭐.

NOTE - Only valid PR's related to issues will be merged....... :-)

code2race's People

Contributors

adeojoemmanuel avatar agshubhs avatar ahmedk2 avatar akarshsingh9 avatar ashwek avatar batratanya avatar bsskull avatar deepa003 avatar dnhuan avatar espetro avatar furiousconjurer avatar iamjaspreetsingh avatar idaciodad avatar ipilotte avatar ishita-gambhir avatar isuru40 avatar khalid3620 avatar komalbagai avatar luca-gouveia avatar markoshiva avatar meghanagottapu avatar nami2012 avatar praveenscience avatar qeireal avatar sidcodestacks avatar tsah20 avatar vidhigupta9 avatar vivudhsh avatar vmtuong avatar wilvdb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

code2race's Issues

Python 3 compatibility issues

flake8 testing of https://github.com/hackerearthclub/CODE2RACE on Python 3.7.1

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pycodestyle.py:113: FutureWarning: Possible nested set at position 1
./SOLUTIONS/ASCII2.py:5:9: F821 undefined name 'raw_input'
    a = raw_input("Enter a string : ")
        ^
./SOLUTIONS/lcm1.py:21:7: F821 undefined name 'find_lcm'
  lcm=find_lcm(num1,num2)
      ^
./SOLUTIONS/rock-paper-scissors.py:14:22: F821 undefined name 'raw_input'
        answer = str(raw_input("Enter: (yes or no)\n"))
                     ^
./SOLUTIONS/rock-paper-scissors.py:21:22: F821 undefined name 'raw_input'
        player = str(raw_input("rock paper or scissors?\n"))
                     ^
./SOLUTIONS/rock-paper-scissors.py:25:21: F821 undefined name 'raw_input'
        enemy = str(raw_input("rock paper or scissors?\n"))
                    ^
./SOLUTIONS/lcm.py:1:2: E999 SyntaxError: invalid syntax
//ARRAY 
 ^
./SOLUTIONS/ATM_SOLUTION.py:7:24: F821 undefined name 'people_amt'
    for i in range(len(people_amt)):
                       ^
./SOLUTIONS/ATM_SOLUTION.py:8:27: F821 undefined name 'people_amt'
            if(total_amt>=people_amt[i]):
                          ^
./SOLUTIONS/ATM_SOLUTION.py:9:37: F821 undefined name 'people_amt'
                total_amt=total_amt-people_amt[i]
                                    ^
./SOLUTIONS/lcm_gcd1.py:14:7: F821 undefined name '_int'
  lcm=_int(int(a*b)/int(gcd))
      ^
./SOLUTIONS/reverse_word2.py:19:16: F821 undefined name 'raw_input'
    sentence = raw_input("Enter a string : ")
               ^
./SOLUTIONS/gcd_lcm.py:26:14: E999 SyntaxError: invalid syntax
	print "GCD=	" + str(res) 
             ^
./SOLUTIONS/lcm[1].py:7:1: E999 SyntaxError: invalid syntax
<!DOCTYPE html>
^
./SOLUTIONS/Census_of_cesar.py:31:15: E999 SyntaxError: invalid syntax
	print preCifra
              ^
./SOLUTIONS/reverse_ordered_dict.py:17:26: E999 SyntaxError: invalid syntax
print reverse_ordered_dict(ordered_dict)
                         ^
./SOLUTIONS/rockpaperscissors[1].py:7:1: E999 SyntaxError: invalid syntax
<!DOCTYPE html>
^
./SOLUTIONS/lcm_gcd[2].py:7:1: E999 SyntaxError: invalid syntax
<!DOCTYPE html>
^
./SOLUTIONS/rockpaperscissors1.py:1:7: F821 undefined name 'raw_input'
a=str(raw_input("player 1"))
      ^
./SOLUTIONS/rockpaperscissors1.py:2:7: F821 undefined name 'raw_input'
b=str(raw_input("player 2"))
      ^
./SOLUTIONS/rockpaperscissors1.py:5:7: F821 undefined name 'raw_input'
c=int(raw_input("a: "))
      ^
./SOLUTIONS/rockpaperscissors1.py:6:7: F821 undefined name 'raw_input'
d=int(raw_input("b: "))
      ^
./SOLUTIONS/reverse_word.py:1:2: E999 IndentationError: unexpected indent
  def reverseWords(input): 
 ^
./SOLUTIONS/UnionFind.py:26:12: E999 SyntaxError: invalid syntax
			print "S"
           ^
./SOLUTIONS/lcm_gcd[1].py:7:1: E999 SyntaxError: invalid syntax
<!DOCTYPE html>
^
./SOLUTIONS/reverse_aword.py:8:20: E999 SyntaxError: invalid syntax
print reverse_string(string)
                   ^
./SOLUTIONS/compare_lists.py:12:13: E999 SyntaxError: invalid syntax
print compare(list1, list2)
            ^
./OPEN CHALLENGE/fruitDetection.py:165:8: E999 SyntaxError: invalid syntax
    elif orangeSize == "not detected":
       ^
./OPEN CHALLENGE/rsa.py:94:36: E999 SyntaxError: invalid syntax
    print "RSA Encrypter/ Decrypter"
                                   ^
./OPEN CHALLENGE/radixSortMSB.py:19:35: E999 TabError: inconsistent use of tabs and spaces in indentation
        for sublist in bucket_list:
                                  ^
15    E999 SyntaxError: invalid syntax
14    F821 undefined name 'raw_input'
29

Determine if a word is a Palindrome

A palindrome is a word, phrase, or sequence that reads the same backwards as forwards, e.g. madam or nurses run.
Write a function that takes in a word and returns true if the word is a palindrome. And returns false if the word is not a palindrome.
For example

let word = madam
return true, "madam is a palindrome"

let word = apple
return false, "apple is not a palindrome"

OPEN challenge

Any code in any language that makes you stand out and is worth innovative πŸ”’ . Location must be the open challenge sub repository.

Reverse a word

lets say you a word => pack
when reversed it would be => kcap..

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.