top of page
Coding Solutions is a great section for every coder. You can get answers to your programming questions here by the Team ATC. You can even ask for the answer to competitive programming language questions as well. First, search your question here, and if not found. Then, ask your question to Ask The Code members, and you will get your answer in no time from the members of this Indian Developer Community. Happy Coding.
Search
Team ATC
Jul 2, 20212 min read
Chef vs Bharat - CodeChef July Long Challenge solution in Python | AskTheCode
Chef and his friend Bharat have decided to play the game "The Chefora Spell". In the game, a positive integer N (in decimal system) is ...
2,010 views1 comment
Team ATC
Jul 2, 20211 min read
Relativity Codechef July Long Challenge Solution in Python|AskTheCode
In Chefland, the speed of light is cm/s, and acceleration due to gravity is g m/s^2...
105 views0 comments
Team ATC
Jun 29, 20213 min read
List Comprehension - Python Examples - AskTheCode
Why to use List Comprehension in Python... List Comprehension enables us to solve most of the problems in a single line ...
70 views0 comments
Team ATC
Jun 20, 20212 min read
XOR Folding Codechef Solution in Python | AskTheCode
You are given a grid with size N×M. Each cell of this grid contains either 0 or 1. We should perform the following operation ... more
79 views0 comments
Team ATC
Jun 17, 20212 min read
How to create button in python using tkinter | AskTheCode
Write a Python program that creates a GUI with a single button. When the button is pressed it should create a second button... more
57 views0 comments
Team ATC
Jun 12, 20213 min read
Minimum Dual Area Codechef Solution | AskTheCode
Given N points in a 2D space,find the minimum sum of areas of rectangles required to cover all the points given that we can use at most 2...
379 views0 comments
Team ATC
Jun 8, 20212 min read
Bitwise Tuples - Codechef Solution -| AskTheCode
Chef has two numbers N and M. Help Chef to find number of integer N-tuples (A1,A2,…,AN) such that 0≤A1,A2,…,AN≤2M−1 and A1&A2&…&AN=0... more
917 views0 comments
Team ATC
Jun 6, 20212 min read
Bella ciao - Codechef Solution | AskTheCode
Chef is planning a heist in the reserve bank of Chefland. They are planning to hijack the bank for D days and print the money...more
1,186 views1 comment
Team ATC
Apr 5, 20212 min read
Strong Language CodeChef April Long Challenge Solution| AskTheCode
CodeChef April Long Challenge 2021 Solution...Strong Language (SSCRIPT) solution in C++. AskTheCode...A string is said to be using strong...
1,289 views0 comments
Team ATC
Mar 9, 20211 min read
Word Order - HackerRank Solution | AskTheCode
HackerRank Python Word Order Solution | Python programming | Ask The Code Problem: You are given n words. Some words may repeat...more
270 views0 comments
Team ATC
Mar 9, 20211 min read
Write a function to check leap year - AskTheCode
Python program to check a year is leap or not | Python programming-Ask The Code Problem: Given a year, determine...it is a leap year...more
69 views0 comments
Team ATC
Feb 24, 20211 min read
Python program to get the first digit of an integer - AskTheCode
Find first digit of an integer in Python-Ask The Code...First Digit of an Integer. We already saw how to find the last digit of...Read more
103 views0 comments
Team ATC
Nov 22, 20201 min read
Binary string reduction in Python
Asked: Sudeep |Category: Python x=int(input("Enter the value of x : ")) for i in range(x): n=int(input("Enter the value of n : "))...
28 views0 comments
Team ATC
Nov 14, 20201 min read
Collatz Conjecture in Python - Python Programming Essentials | AskTheCode
Python program on Collatz Conjecture based on question in Python Programming Essentials course...Coursera...Week 3 solution code...Read more
25 views0 comments
Team ATC
Nov 8, 20201 min read
Finding sum of digits of a number until sum becomes single digit
Asked: Pushkar Tiwari |Category: Python n=eval(input("Enter the value of n : ")) import math def digSum( n): sum = 0 while(n > 0 or sum...
22 views0 comments
Team ATC
Sep 30, 20201 min read
Lists | HACKER RANK
Asked: Rahul Kumar Ranjan |Category: Python n=int(input()) l=[] for i in range (n): x=input().split(" ") com=x[0] if com=="insert":...
49 views0 comments
Team ATC
Sep 30, 20201 min read
List Comprehensions | HACKER RANK
Asked: Rahul Kumar Ranjan |Category: Python x = int(input()) y = int(input()) z = int(input()) n = int(input()) print( [[i,j,k] for i in...
138 views0 comments
Team ATC
Sep 26, 20201 min read
Python program to check whether a number is Prime or not
Asked: Anonymously |Category: Python num =eval(input("Enter the number")) if num > 1: for i in range(2,num): if (num % i) == 0:...
21 views0 comments
Team ATC
Sep 26, 20201 min read
Python program to print all Prime numbers in an Interval
Asked: Anonymously |Category: Python lower = eval(input("Enter lower value")) upper = eval(input("Enter upper value")) print("Prime...
17 views0 comments
Team ATC
Sep 26, 20201 min read
Python Program to check Armstrong Number
Asked: Anonymously |Category: Python num = int(input("Enter a number: ")) sum = 0 temp = num while temp > 0: digit = temp % 10 sum +=...
23 views0 comments
bottom of page