भाष में समस्या समाधान
क्या देवनागरी में लिखे प्रोग्राम भूलभुलैया में रास्ता खोज सकते हैं या सुडोकू की जाँच कर सकते हैं? इन दस उदाहरणों में प्रश्न, समाधान की विधि, चलने योग्य भाष कोड और अपेक्षित परिणाम साथ दिए गए हैं।
Explore nine solutions to the 2026 Practice Problems. Each program reads contest-format input and prints its answer. Start with Sum or Product for a short first exercise, then try Food Search for breadth-first search or Razorback Ziplines for subset dynamic programming.
Download the nine contest programs and the illustrated-by-example guide (ZIP). Extract the archive and open index.html to read the explanations, expand the source listings and compare sample inputs with expected outputs. Each .bhash file runs independently with the Bhash compiler.
समस्याएँ · The problems
Bullseye · निशाने के अंक
वृत्त की सीमा पर लगे तीर को भीतरी घेरे के अंक मिलते हैं। Compare squared distances to score five shots without square roots.
Tipsy Canoe · डोंगी का संतुलन
सबसे भारी और सबसे हल्के व्यक्ति का अंतर जाँचें। The largest possible imbalance covers every seating order.
Programming Contest · सबसे सरल प्रश्न
हर प्रश्न के अंकों का औसत निकालें। Cross-multiply rating totals and vote counts to resolve ties exactly.
Food Search · भोजन तक का रास्ता
कतार की सहायता से निकटतम भोजन तक पहुँचें। A breadth-first search finds the shortest walk around walls.
Strictly Increasing · बढ़ता क्रम
यदि कोई संख्या दो बार आती है तो सख्ती से बढ़ता क्रम असंभव है। Detect duplicates with a presence table.
Sum or Product · योग या गुणनफल
तीन संख्याओं का योग और गुणनफल निकालकर बड़ा मान चुनें। For 3, −1 and 4, the sum wins with 6.
Razorback Ziplines · पेड़ों के बीच मार्ग
हर पेड़ से ठीक एक बार गुजरना है। Track the shortest and longest path for each visited subset and last tree.
Sudoku Checker · सुडोकू की जाँच
पंक्ति, स्तंभ और खंड की त्रुटियाँ अलग-अलग गिनें। Nine-bit masks show which digits occur in each unit.
Caesar Salad Cipher · अक्षरों का बदलाव
हर अक्षर को SALAD के अगले मान से आगे बढ़ाएँ। Spaces keep their position and consume no shift.
Hindi Weekday Calculator · तिथि से वार निकालें
अपनी तारीख से सप्ताह का दिन जानें। Enter a date such as 11/20/2026 to find its Hindi weekday, शुक्रवार.