!code wars - july!

:loudspeaker: And we’re back!!! :raised_hands: :raised_hands:

:yum: This time, we’re gonna do things differently! There won’t be any projects to do but quick-time-events! :speak_no_evil:

:point_right: :point_right: For both FSR and DS batches, you’ll be given 3 coding problems each - easy, medium and difficult. There will be 2 hrs within which you have to write the codes and submit the links here in this thread. :point_left: :point_left:

:white_check_mark: The Coding Problems for Code Wars will be posted on July - 22nd - 6 PM! The deadline to complete and submit the links here will be 8 PM 22nd July.

:wave: Let the best coding warriror win! :ninja: :ninja:

17 Likes

~FOR THOSE WHO ARE CURIOUS~

:raised_hands: Code Wars is a montly activity, submissions come in the form of participants uploading their projects either on GitHub or Codepen and sharing those links here. :point_down:

:white_check_mark: The winner receives an official certificate from EdYoda, one you can use in your resumes, on LinkedIn and share in your digital resumes! :grin:

:white_check_mark:The submissions are reviewed by an internal team at EdYoda!

:man_dancing: The event is open to all so feel free to participate!

Carefully read through the guidelines and stay tune for 22nd July! :partying_face:

See you soon :wave: :blush:

5 Likes
  • Update - New Timings : 6:30 to 8:30

Questions live at 6:30 PM TODAY

3 Likes

:wave: :wave:!!! CODE WARS - JULY!!! :wave: :wave:

*NOTE - ALL STUDENTS FROM FSR AND DS have to attempt these questions and solve them in Python (DS STUDENTS) and JavaScript (FSR STUDENTS)!!! :point_left:

Question 1 Easy:

Given an integer array Arr[] of size N. The task is to find sum of it.

Example 1:

Input:N = 4Arr[] = {1, 2, 3, 4}Output: 10Explanation: 1 + 2 + 3 + 4 = 10. 

Example 2:

Input:N = 3Arr[] = {1, 3, 3}Output: 7Explanation: 1 + 3 + 3 = 7. 

Your Task:
Complete the function sum() which takes array arr and single integer n, as input parameters and returns an integer denoting the answer. You don’t to print answer or take inputs.

Question 2 Medium:

Given a number N.Find if the digit sum(or sum of digits) of N is a Palindrome number or not.
Note:A Palindrome number is a number which stays the same when reversed.Example- 121,131,7 etc.

Example 1:

Input:N=56Output:1Explanation:The digit sum of 56 is 5+6=11.Since, 11 is a palindrome number.Thus,answer is 1.

Example 2:

Input:N=98Output:0Explanation:The digit sum of 98 is 9+8=17.Since 17 is not a palindrome,thus, answeris 0.

Your Task:
You don’t need to read input or print anything.Your Task is to complete the function isDigitSumPalindrome() which takes a number N as input parameter and returns 1 if the Digit sum of N is a palindrome.Otherwise it returns 0.

Question 3 Medium:

Given an integer, check whether it is a palindrome or not.

Example 1:

Input: n = 555Output: Yes 

Example 2:

Input: n = 123Output: No 

Your Task:
You don’t need to read or print anything. Your task is to complete the function is_palindrome() which takes the number as input parameter and returns “Yes” if it is palindrome otherwise returns “No”(Without quotes).

1 Like

sir is there any chance to write code in java language

may fsr students write code in python?

I am in fullstackdeveloper course only.

Mam in these questions should we take user inputs or not?

Hi everyone, please refer to the post - it clearly mentions:

All students have to attempt these questions.

FSR (Fullstack) students need to write in only JavaScript.

DS (Python) students only need to write in Python.

Yes, we can @akshithasams

Okay, mam! Thank you.

https://7jj5mg.csb.app/

https://gist.github.com/morningstar620

when code war will be start?

5550, how it is a palindrome

DS060623

:rocket: Code Wars - July 2023 :books::sparkles:
Solve challenging JavaScript questions and test your skills! :brain::bulb:
Check the sum of an integer array, find digit sum palindromes, and verify if an integer is a palindrome. :arrows_counterclockwise::100:
Give it a try and see how well you fare by clicking these responsive code links below! :sunglasses::computer: #JavaScript #CodingChallenge #CodeWars #July2023

Link-1: Code Wars - July 2023 (code-wars-2–akshithaannaram.repl.co)
Link-2: Code Wars - July 2023 (code-wars-1–akshithaannaram.repl.co)

Thank you!

2 Likes

Link-1: https://codepen.io/Akshitha-Annaram/full/MWzBoLV

Link-2: https://codepen.io/Akshitha-Annaram/full/KKrBqJy

1 Like

Here is the output for code-war competiton…

Code-War (codepen.io)