Giter Club home page Giter Club logo

hacktoberfest2023's Introduction

Hi πŸ‘‹, I'm Saptarshi Sarkar

A Simple developer with supernatural power 😎


saptarshisarkar20

saptarshisarkar20

πŸ‘¨β€πŸ’» Β About Me :

I am a Full Stack Developer from India.

Connect with me:

@iamss_ss https://www.linkedin.com/in/saptarshi-sarkar-aa20781b1/ https://www.facebook.com/saptarshi.sarkar.3194/ i__am_ss https://youtube.com/channel/UCkCSWT1_Lj1NGkIlNnG49vg i_am_ss @saptarshi2017cob i_am_ss saptarshi2017cob

Tools:

arduino bash c figma git heroku illustrator linux matlab photoshop postman

Frontend

React Bootstrap CSS3 HTML5 JavaScript Illustrator Node.js Premiere Pro Express.js Photoshop MongoDB PowerShell Lightroom After Effects

Backend

PHP MongoDB Linux Nginx Python Java Express.js Bash Node.js c cplusplus PowerShell Flask MySQL

DevOps

Linux Git Bash PowerShell GitLab

saptarshisarkar20

Β saptarshisarkar20

saptarshisarkar20



Connect with me



hacktoberfest2023's People

Contributors

aluvaja avatar croquis avatar debapriyajha avatar dipteshh avatar disha842 avatar gaut2003 avatar gruelingpine185 avatar i-am-ss avatar i-see-pixels avatar iamssss avatar kinshu-learner avatar mallikarjuna4406 avatar manng2 avatar niladriniladri avatar nouvaldhaa avatar prahuljose avatar pushpendrasahu11 avatar rk-1620 avatar sampaddey avatar sanyaarora123 avatar saptarshisarkar20 avatar sayak01 avatar shashwat010 avatar sneha3215 avatar spidermath avatar sujal-goswami avatar thechangamunda avatar what-should-be-my-username 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

hacktoberfest2023's Issues

Write a function in any programming language to solve the below problem Palindrome Number

What to Do?

Star 🌟 the repo

Fork the repo

Location
Go to folder Pull Here/LeetCode/PalindromeNumber

File name
Take your GitHub username id like "hrithik339", "hacker-boy", etc or anything which you have.
Then add a programming language extension after this (link for C++ add .cpp and for python add.py)
Only files with the correct file name will be accepted


Problem Statement

Given an integer x, return true if x is palindrome integer.

An integer is a palindrome when it reads the same backward as forward.

For example, 121 is a palindrome while 123 is not.

Example 1:

Input: x = 121
Output: true

Explanation: 121 reads as 121 from left to right and from right to left.

Example 2:

Input: x = -121
Output: false

Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.

Example 3:


Input: x = 10
Output: false

Explanation: Reads 01 from right to left. Therefore it is not a palindrome.

Constraints:

-231 <= x <= 231 - 1

Follow up: Could you solve it without converting the integer to a string?

Function

class Solution {
public:
    bool isPalindrome(int x) {
        
    }
};

EXCLUDED

hey
This repository is excluded from hacktoberfest,
So please mention it in your "README"...

Counting Bits - Problem Solving

What to Do?

Star 🌟 the repo
Fork 🌿 the repo
Location
Go to folder Pull Here/LeetCode/CountingBits

File name
Take your GitHub username id like "hrithik339", "hacker-boy", etc or anything which you have.
Then add a programming language extension after this (link for C++ add .cpp and for python add.py)
Only files with the correct file name will be accepted


Problem Statement

Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary representation of i.

Example 1:

Input: n = 2
Output: [0,1,1]

Explanation:
0 --> 0
1 --> 1
2 --> 10

Example 2:

Input: n = 5
Output: [0,1,1,2,1,2]

Explanation:
0 --> 0
1 --> 1
2 --> 10
3 --> 11
4 --> 100
5 --> 101

Constraints:

0 <= n <= 105

Follow up:

It is very easy to come up with a solution with a runtime of O(n log n). Can you do it in linear time O(n) and possibly in a single pass?
Can you do it without using any built-in function (i.e., like __builtin_popcount in C++)?

Function

class Solution {
public:
    vector<int> countBits(int n) {
        
    }
};
class Solution:
    def countBits(self, n: int) -> List[int]:
class Solution {
    public int[] countBits(int n) {
        
    }
}

BLACK and White RING GAME

Alice and Bob are playing a game. Alice goes first.

They have a binary circular array A with N elements. In one move, a player can:

Choose a circular continuous segment of the array and perform a left cyclic shift on the chosen segment.

We define the term diff(A as the number of pairs of adjacent elements with different values. Note that we also consider An​ and A1 as adjacent.

A player can make a move only if, for the updated array Aβ€², diff(Aβ€²)>diff(A).

The player who is unable to make a move, loses. Find the winner of the game if both players play optimally.

].

Input Format

The first line of input contains a single integer T, the number of test cases. The description of the test cases follows.
Each test cases consists of two lines of input.
    The first line of each test case contains a single integer N, the number of elements.
    The second line of each test case contains N space-separated integers 

Output Format

For each test case, if Alice will win print Alice, otherwise print Bob.

You may print each character in Uppercase or Lowercase. For example: BOB, bob, boB, and Bob are all identical.


House Robber - Problem solving

What to Do?

Star 🌟 the repo
Fork 🌿 the repo
Location
Go to folder Pull Here/LeetCode/HouseRobber

File name
Take your GitHub username id like "hrithik339", "hacker-boy", etc or anything which you have.
Then add a programming language extension after this (link for C++ add .cpp and for python add.py)
Only files with the correct file name will be accepted


Problem Statement

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent houses were broken into on the same night.

Given an integer array nums representing the amount of money of each house, return the maximum amount of money you can rob tonight without alerting the police.

Example 1:

Input: nums = [1,2,3,1]
Output: 4

Explanation: Rob house 1 (money = 1) and then rob house 3 (money = 3).
Total amount you can rob = 1 + 3 = 4.

Example 2:

Input: nums = [2,7,9,3,1]
Output: 12

Explanation: Rob house 1 (money = 2), rob house 3 (money = 9) and rob house 5 (money = 1).
Total amount you can rob = 2 + 9 + 1 = 12.

Constraints:

1 <= nums.length <= 100
0 <= nums[i] <= 400

Function

class Solution {
public:
    int rob(vector<int>& nums) {
        
    }
};

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.