Git Product home page Git Product logo

santhanch's Projects

avid-algorithms icon avid-algorithms

Basic knowledge of Data Structure and Algorithms and LeetCode solution in Python & C++.

chefsteps icon chefsteps

In order to establish dominance amongst his friends, Chef has decided that he will only walk in large steps of length exactly K feet. However, this has presented many problems in Chef’s life because there are certain distances that he cannot traverse. Eg. If his step length is 5 feet, he cannot travel a distance of 12 feet. Chef has a strict travel plan that he follows on most days, but now he is worried that some of those distances may become impossible to travel. Given N distances, tell Chef which ones he cannot travel. Input: The first line will contain a single integer T, the number of test cases. The first line of each test case will contain two space separated integers - N, the number of distances, and K, Chef’s step length. The second line of each test case will contain N space separated integers, the ith of which represents Di, the distance of the ith path. Output: For each testcase, output a string consisting of N characters. The ith character should be 1 if the distance is traversable, and 0 if not. Constraints 1≤T≤1000 1≤N≤1000 1≤K≤109 1≤Di≤109 Subtasks 100 points : No additional constraints. Sample Input: 1 5 3 12 13 18 20 27216 Sample Output: 10101 Explanation: The first distance can be traversed in 4 steps. The second distance cannot be traversed. The third distance can be traversed in 6 steps. The fourth distance cannot be traversed. The fifth distance can be traversed in 9072 steps.

competitiveprogramming icon competitiveprogramming

This repository aims to contain solutions and explanations to various competitive programming problems, which may be important for interviews and online tests of different companies.

dsa icon dsa

Collection of Algorithms

dsa-cpp-hacktoberfest2021 icon dsa-cpp-hacktoberfest2021

C++ fundamentals and questions for beginners and intermediates. Raise Genuine PRs only. Your PRs will be accepted, keep patience. Star This Repo. You aren't allowed to Update README.md. Welcoming developers, content writers, and programming enthusiasts.

dsa1 icon dsa1

data structures and algorithms

hacktoberfest-1 icon hacktoberfest-1

Participate in Hacktoberfest by contributing to any Open Source project on GitHub! Here is a starter project for first time contributors. #hacktoberfest

hacktoberfest-beginners icon hacktoberfest-beginners

Raise Genuine PRs only. Your PRs will be accepted, keep patience. Star This Repo. You aren't allowed to Update README.md

hacktoberfest2021-dsa icon hacktoberfest2021-dsa

If You know any DSA problem solution you can contribute it here. Raise Genuine PRs only. Your PRs will be accepted, keep patience. Star This Repo. You aren't allowed to Update README.md. Welcoming developers, content writers, and programming enthusiasts.

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.