NICEQUAD - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONTo detect whether the quadrangle has an integer area we will use the Pick theorem which states that the area of a grid polygon can be calculated in...
View ArticleEffecient Algorithm Discussion
I have come to know about an interesting algorithm based question . Question is as follws----**I have two permutation of same string without any space ..... EX--- ASCBD and ACSDB**I have to calulate...
View ArticleList contains all 7-variations
I'm practicing programming by doing a little lotto calculator to compute lotto designs. In C++, how can I make a list that contains all different lotto rows i.e. seven numbers from the set...
View Articlebytecode:monkeys
In monkeys problem, after running it gives SIGABRT. In my system it runs successfully.What is the reason,can anybody tell me?
View ArticleAccepted solutions in 'School' section
Currently, a submission in the 'School' section of the practice problems is adjudged 'Accepted' even if it solves only some of the subtasks, and fails on other, harder subtasks. Due to this, the number...
View ArticleNZEC Error in Python..
def main(): numbers=[] count=0 while True: num=raw_input(""); if not num: break elif num=="42": count=count+1 elif int(num)>0 and int(num)<100 and count==0: numbers.append(num) print...
View ArticleNZEC Error in Python..
def main(): numbers=[] count=0 while True: num=raw_input(""); if not num: break elif num=="42": count=count+1 elif int(num)>0 and int(num)<100 and count==0: numbers.append(num) print...
View Articlexor sum ACM Amritapuri 2009
problemhow to find maximum xor of contiguous sub-sequence of array
View Articleacode related to dynamic programming
Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages:Alice: “Let’s just use a very simple code: We’ll assign ‘A’ the code word 1, ‘B’ will be 2, and...
View Articledeclaring an array of 1000000 size
I was seeing a solution of a problemin the solution an array is declared as int vec[1000000]when i copied the code and tried to run it on my system it gives me error but when i submitted the same code...
View Articlejava program
class A{ void f1(){}; void f2(){}; void f3(){}; }class B{ void f4(){}; void f5(){}; }----main----- { }its not a complete program..just an outline how the program looks like.now the qustion is "how can...
View Articlegiving wrong answer for subtask = 1 for COUPON in LTIME01
please check my answer for COUPON in LTIME01. it is giving wrong snswer for subtask 1 and right for all other subtask. i have also matched the code with accepted solutions but unable to find...
View ArticleWhat is the best algorithm to find the most occurrence of a word in text?
Does anyone know what is the best algorithm to find the most occurrence of a word in text (very large), so hash map is not a solution I'm looking for. I'm thinking of either "Trie" or "Suffix Array"...
View ArticleHow to Spot Fake Michael Kors Handbags
Replica Michael Kors handbags are a rapidly growing niche in the fake handbag market. MK is currently one of the hottest fashion and accessory designers in the industry. Authentic Michael Kors handbags...
View ArticleImprovement in Long Contest
There might be few things that can be done in Long Contest Challenge Problem.Successful submission accuracy for challenge problems can be limited to first time successful submission, by the user.Also,...
View Articlegiven a number n and a array , print all the subarrays whose sum is exactly n
I want an efficient algoritlm that can be used to solve the above problem . Thank you.
View ArticleDIVQUERY - editorial
Problem Link:PracticeContestauthor: Tasnim Imran Sunnytester: Roman Rubanenkoeditorialist: Utkarsh LathDifficulty:MediumPre-requisites:offline processing of queries, factorizing small...
View ArticleTESTERS - Editorial
Problem Link:PracticeContestDifficulty:HardPre-requisites:Divide And Conquer, Number TheoryProblem:Define a beautiful number as one whose sum of divisors squared is odd. You are given a tree, in which...
View ArticleFind users of the same institution
Is there anyway i can find out the users from my institute?
View Article