ARE. YOU. READY???
This time, we will have 2 separate levels of Code Wars on Community for both DS and FSR programs!
ARE. YOU. READY???
This time, we will have 2 separate levels of Code Wars on Community for both DS and FSR programs!
Hi everyone!
Here is the gist of the event
Friday (25th August) - Beginners Level (FSR and DS)
Saturday (26th August) - Advanced Level (FSR and DS) β Deadline 29th August 11:30 PM.
The projects for Code Wars will be made live on Friday by 6 PM. EVERYONE is WELCOMED to try any of the projects based on your skill-level!
~ The winners will be declared by 2nd September and they will receive the official Certificates in mail by the end of the week. ~
WHY CODE WARS?
~ Code Wars is a great way of engaging with your batch mates and testing your knowledge and skills. These projects will help you build confidence and give you an idea about IRL projects youβd have to do in professional spaces. This is a monthly activity and all are welcomed to try
Donβt be shy and participate with everyone else! Donβt forget to tag us on social media platforms and share your accomplishments!
More information about the Code Wars projects will be shared soon, stay tuned !!!
Iβm new to code wars so can you tell me what kind of question will be givenβ¦ like im from fsr batch so will i get a coding question from dsa or something like that or i will get any website or design to create
Hi @rish3ha , you can scroll through previous iterations of Code Wars in this category to understand more.
But each project will be different for different programs. Information about the projects will be made live on Friday.
This time, there will be two different levels of projects students can participate in. One for beginners where people can use HTML,CSS,JavaScript and React. The other level is for thos who know advanced topics from NodeJS. This is for FSR. What kind of project it will be, will be disclosed on Friday.
But participants would have to either code in a set time, or create a project on GitHub or similar platforms and share the links here within the given deadline.
Again, you are free to go through the previous Code Wars posts that you can find in this Category. I hope this helps!
GET READY EVERYONE!
~ For FSR Beginners - we will have interesting coding problems to solve! The questions will be made available on Friday 6 PM. You will have 2 hours to complete the coding on GitHub or VSCode and share the link on this post by 8 PM. FSR students will use JavaScript to write and solve the coding problems.
~For DS Beginners - The questions will be made available on Friday 6 PM. You will have 2 hours to complete the coding on GitHub or VSCode and share the link on this post by 8 PM. DS students will use Python to write and solve the coding problems.
/// For FSR Advanced - We will share a project question with parameters on Friday around 6:30 PM. You will have to make the project and share the link to your project by replying here within 29th August, 11:30 PM. You will need MongoDB and NodeJS to do this project.
/// For DS Advanced - We We will share a project question with parameters on Friday around 6:30 PM. You will have to make the project and share the link to your project by replying here within 29th August, 11:30 PM. You will need Data Wrangling concepts to do this project.
ALL THE BEST EVERYONE!!!
cc @sumanth.medishetti special thanks for designing the questions
THE CODE WARS BEGINS
Beginners
Solve all of the following questions between 6-8 PM and share your link in this post by 8 PM today!
β For DS STUDENTS - USE PYTHON TO SOLVE THE QUESTIONS
β For FSR STUDENTS - USE JAVASCRIPT TO SOLVE THE QUESTIONS
*** No submissions after 8 PM today will be considered. ALL SUBMISSIONS need to be shared to this thread as replies!
*** All submission should mention their batchcode when sharing the links here!
Armstrong Numbers β
For a given 3 digit number, find whether it is Armstrong number or not. An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Return βYesβ if it is a Armstrong number else return βNoβ.
NOTE: 371 is an Armstrong number since 33 + 73 + 13 = 371
Example 1:
Input: N = 153Output: "Yes"Explanation: 153 is an Armstrong numbersince 13 + 53 + 33 = 153.Hence answer is "Yes".
Example 2:
Input: N = 370Output: "Yes"Explanation: 370 is an Armstrong numbersince 33 + 73 + 03 = 370.Hence answer is "Yes".
Your Task:
You dont need to read input or print anything. Complete the function armstrongNumber() which takes n as input parameter and returns βYesβ if it is a armstrong number else returns βNoββ¦
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
Constraints:
100 β€ n <1000
Given an array a of size N which contains elements from 0 to N-1, you need to find all the elements occurring more than once in the given array. Return the answer in ascending order. If no such element is found, return list containing [-1].
Note: The extra space is only for the array to be returned. Try and perform all operations within the provided array.
Example 1:
Input:N = 4a[] = {0,3,1,2}Output: -1Explanation: There is no repeating element in the array. Therefore output is -1.
Example 2:
Input:N = 5a[] = {2,3,1,2,3}Output: 2 3 Explanation: 2 and 3 occur more than once in the given array.
Your Task:
Complete the function duplicates() which takes array a[] and n as input as parameters and returns a list of elements that occur more than once in the given array in a sorted manner.
Expected Time Complexity: O(n).
Expected Auxiliary Space: O(n).
Constraints:
1 <= N <= 105
0 <= A[i] <= N-1, for each valid i
Question 3 β
Given a linked list of N nodes. The task is to reverse this list.
Example 1:
Input:LinkedList: 1->2->3->4->5->6Output: 6 5 4 3 2 1Explanation: After reversing the list, elements are 6->5->4->3->2->1.
Example 2:
Input:LinkedList: 2->7->8->9->10Output: 10 9 8 7 2Explanation: After reversing the list,elements are 10->9->8->7->2.
Your Task:
The task is to complete the function reverseList() with head reference as the only argument and should return new head after reversing the list.
Expected Time Complexity: O(N).
Expected Auxiliary Space: O(1).
Constraints:
1 <= N <= 104
cc. @sumanth.medishetti special thanks for designing the questions
THE CODE WARS BEGINS
Advanced
FOR DS PARTICIPANTS ~~
Answer the following questions for the dataset given below using Numpy, Pandas, Matplotlib, and Seaborn only. PowerBI and Excel are not to be used!
bangalore.csv (8.6 KB)
Questions:
DEADLINE - 29th August 11:30 PM.
*** The links need to be shared in this post as replies within the deadline, no submissions will be considered after the expiration of deadline.
For FSR PARTICIPANTS ~~
Create a URL shortener using NodeJS -
Functional Requirements
Design Parameters
Special Parameters
DEADLINE - 29th August 11:30 PM.
*** The links need to be shared in this post as replies within the deadline, no submissions will be considered after the expiration of deadline.
My batch id : DS250723
Question 1
Question 2
Question 3
Batch Code: FSR230523
Codepen links:
question1 link: https://codepen.io/Vishal-Kumar25/pen/vYvNeeo?editors=1111
question2 link: https://codepen.io/Vishal-Kumar25/pen/ExGVwEe?editors=1112
question3 link: https://codepen.io/Vishal-Kumar25/pen/gOZaGZr?editors=1112
Thankyou!
Batch Code:FSR230523
Batch Code-DS240623
Batch Code: FSR230523
Used code python
For basic level code wars
Batch : DS100723
Batch : DS100723
FSR-CODEWARS-AUGUST 2023!
Batch Code-FSR060523
Levelling Up Coding Skills with These CodeWars Challenges! Check if itβs an Armstrong number, Find Duplicates in an array, and Reverse a Linked List! Click the link below to dive in and conquer these coding quests!
Link-1:https://codepen.io/Akshitha-Annaram/full/XWomVKd
Link-2:Impressive CodeWars Questions (codewars-augustβakshithaannaram.repl.co)
#CodeWarsChallenge #CodingFun
Thank you!
DS100723
a = int(input(""))
def armstrongNumber(no):
num1 = no // 100
num2 = (no // 10) % 10
num3 = no % 10
armstrong = (num1**3) + (num2**3) + (num3**3)
if armstrong == no:
return "Yes"
else:
return "No"
b = armstrongNumber(a)
print(b)