Skip to content

Challenges that I solve to learn. Most of them are from HackerRank / LeetCode

Notifications You must be signed in to change notification settings

insivam/Challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contents

🍄 Bot Saves Princess 🏰 Bot Saves Princess 2 🤖 BotClean ➕ Two Sum ⚡ ZigZag Conversion

🍄 Bot Saves Princess

Bot Saves Princess gif

Princess Peach is trapped in one of the four corners of a square grid. You are in the center of the grid and can move one step at a time in any of the four directions. Can you rescue the princess?







🏰 Bot Saves Princess 2

Bot Saves Princess 2 gif

In this version of "Bot saves princess", Princess Peach and bot's position are randomly set. Can you save the princess?








🤖 BotClean

Cleaning bot gif

The goal of Artificial Intelligence is to create a rational agent (Artificial Intelligence 1.1.4). An agent gets input from the environment through sensors and acts on the environment with actuators. In this challenge, you will program a simple bot to perform the correct actions based on environmental input.






➕ Two Sum

Write a function that takes an array of integers and a target number. The function should find two different integers in the array that give the target value when added together.

Input: nums = [2,7,11,15], target = 9
Output: [0,1]
Explanation: Because nums[0] + nums[1] == 9, we return [0, 1].

⚡ ZigZag Conversion

You're given a string, and a number of rows. The idea is that the given string is written in a zigzag pattern, and the function should return what the string would read like when read line-by-line.

P   A   H   N
A P L S I I G
Y   I   R

About

Challenges that I solve to learn. Most of them are from HackerRank / LeetCode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages