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
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 ...
Team ATC
Jul 2, 20212 min read
2,010 views
1 comment
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...
Team ATC
Jul 2, 20211 min read
106 views
0 comments
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 ...
Team ATC
Jun 29, 20213 min read
70 views
0 comments
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
Team ATC
Jun 20, 20212 min read
79 views
0 comments
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
Team ATC
Jun 17, 20212 min read
57 views
0 comments
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...
Team ATC
Jun 12, 20213 min read
379 views
0 comments
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
Team ATC
Jun 8, 20212 min read
917 views
0 comments
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
Team ATC
Jun 6, 20212 min read
1,186 views
1 comment
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...
Team ATC
Apr 5, 20212 min read
1,289 views
0 comments
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
Team ATC
Mar 9, 20211 min read
270 views
0 comments
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
Team ATC
Mar 9, 20211 min read
69 views
0 comments
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
Team ATC
Feb 24, 20211 min read
103 views
0 comments
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 : "))...
Team ATC
Nov 22, 20201 min read
28 views
0 comments
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
Team ATC
Nov 14, 20201 min read
25 views
0 comments
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...
Team ATC
Nov 8, 20201 min read
22 views
0 comments
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":...
Team ATC
Sep 30, 20201 min read
49 views
0 comments
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...
Team ATC
Sep 30, 20201 min read
138 views
0 comments
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:...
Team ATC
Sep 26, 20201 min read
21 views
0 comments
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...
Team ATC
Sep 26, 20201 min read
17 views
0 comments
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 +=...
Team ATC
Sep 26, 20201 min read
23 views
0 comments
bottom of page