<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>scratchpad  - Recent changes [en]</title>
		<link>https://myscratchpad.is-a.dev/index.php/Special:RecentChanges</link>
		<description>Track the most recent changes to the wiki in this feed.</description>
		<language>en</language>
		<generator>MediaWiki 1.43.9</generator>
		<lastBuildDate>Mon, 14 Sep 2026 21:38:22 GMT</lastBuildDate>
		<item>
			<title>Main Page</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=390&amp;oldid=364</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=390&amp;oldid=364</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:29, 11 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-multi&quot; lang=&quot;en&quot;&gt;(One intermediate revision by the same user not shown)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [{{fullurl:Private:Journal/{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#time:Y|+5 hours 30 minutes&lt;/del&gt;}}/{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#time:m|+5 hours 30 minutes&lt;/del&gt;}}/{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#time:d|+5 hours 30 minutes&lt;/del&gt;}}|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;veaction&lt;/del&gt;=edit&amp;amp;preload=Template:DailyJournalPreload&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/del&gt;}} Create today&#039;s note]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [{{fullurl:Private:Journal/{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LOCALYEAR&lt;/ins&gt;}}/{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LOCALMONTH&lt;/ins&gt;}}/{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LOCALDAY2&lt;/ins&gt;}}|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;action&lt;/ins&gt;=edit&amp;amp;preload=Template:DailyJournalPreload}} Create today&#039;s note]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-364:rev-390:php=table --&gt;
&lt;/table&gt;</description>
			<pubDate>Fri, 11 Sep 2026 03:59:00 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:Main_Page</comments>
		</item>
		<item>
			<title>DSA/Chessboards and Queens</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=DSA/Chessboards_and_Queens&amp;diff=376&amp;oldid=373</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=DSA/Chessboards_and_Queens&amp;diff=376&amp;oldid=373</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:21, 3 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l268&quot;&gt;Line 268:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 268:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Prefer O(1) incremental state (boolean arrays) over re-scanning the board on every check — it turns an already-fast solution into a very fast one.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Prefer O(1) incremental state (boolean arrays) over re-scanning the board on every check — it turns an already-fast solution into a very fast one.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Global arrays/variables are common in competitive programming for exactly this kind of state — avoids passing/copying containers on every recursive call.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Global arrays/variables are common in competitive programming for exactly this kind of state — avoids passing/copying containers on every recursive call.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:DSA]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Backtracking]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-373:rev-376:php=table --&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 03 Sep 2026 04:51:52 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:DSA/Chessboards_and_Queens</comments>
		</item>
		<item>
			<title>MediaWiki:Tabberneue-tabbertransclude-category</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=MediaWiki:Tabberneue-tabbertransclude-category&amp;diff=375&amp;oldid=0</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=MediaWiki:Tabberneue-tabbertransclude-category&amp;diff=375&amp;oldid=0</guid>
			<description>&lt;p&gt;Created blank page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;/div&gt;</description>
			<pubDate>Thu, 03 Sep 2026 04:49:55 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/MediaWiki_talk:Tabberneue-tabbertransclude-category</comments>
		</item>
		<item>
			<title>MediaWiki:Tabberneue-tabber-category</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=MediaWiki:Tabberneue-tabber-category&amp;diff=374&amp;oldid=0</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=MediaWiki:Tabberneue-tabber-category&amp;diff=374&amp;oldid=0</guid>
			<description>&lt;p&gt;Created blank page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;/div&gt;</description>
			<pubDate>Thu, 03 Sep 2026 04:49:46 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/MediaWiki_talk:Tabberneue-tabber-category</comments>
		</item>
		<item>
			<title>DSA/Chessboards and Queens</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=DSA/Chessboards_and_Queens&amp;diff=373&amp;oldid=372</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=DSA/Chessboards_and_Queens&amp;diff=373&amp;oldid=372</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://myscratchpad.is-a.dev/index.php?title=DSA/Chessboards_and_Queens&amp;amp;diff=373&amp;amp;oldid=372&quot;&gt;Show changes&lt;/a&gt;</description>
			<pubDate>Thu, 03 Sep 2026 04:41:34 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:DSA/Chessboards_and_Queens</comments>
		</item>
		<item>
			<title>DSA/Chessboards and Queens</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=DSA/Chessboards_and_Queens&amp;diff=372&amp;oldid=0</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=DSA/Chessboards_and_Queens&amp;diff=372&amp;oldid=0</guid>
			<description>&lt;p&gt;Create Chessboard &amp;amp; Queens problem solution&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Chessboard and Queens (CSES) =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Problem:&amp;#039;&amp;#039;&amp;#039; Place 8 queens on an 8×8 chessboard so that no two queens attack each other. Some squares are &amp;#039;&amp;#039;reserved&amp;#039;&amp;#039; (marked with a star in the input) and cannot hold a queen. Count the number of valid placements.&lt;br /&gt;
&lt;br /&gt;
== Why Is This a Recursion Problem? ==&lt;br /&gt;
&lt;br /&gt;
There are two strong signals that point to recursion (specifically &amp;#039;&amp;#039;&amp;#039;backtracking&amp;#039;&amp;#039;&amp;#039;):&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;No natural iterative solution.&amp;#039;&amp;#039;&amp;#039; We&amp;#039;re placing 8 queens, and the number of valid choices for queen &amp;#039;&amp;#039;k&amp;#039;&amp;#039; depends entirely on how queens 1..k-1 were placed. You&amp;#039;d need 8 nested for-loops, one per queen — and even that doesn&amp;#039;t work cleanly, since the number of &amp;#039;&amp;#039;valid&amp;#039;&amp;#039; choices at each level changes dynamically.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Tiny constraints.&amp;#039;&amp;#039;&amp;#039; An 8×8 board is a dead giveaway. Constraints this small almost always mean the intended complexity is something like &amp;lt;code&amp;gt;O(2^n)&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;O(n!)&amp;lt;/code&amp;gt; — both are hallmarks of brute-force / backtracking search.&lt;br /&gt;
&lt;br /&gt;
== The Core Idea ==&lt;br /&gt;
&lt;br /&gt;
Since we need exactly one queen per row (8 queens, 8 rows), we can place them &amp;#039;&amp;#039;&amp;#039;row by row&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
* Write a recursive function &amp;lt;code&amp;gt;place(row)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* For the current row, try every column from 0 to 7.&lt;br /&gt;
* If the square is free (not reserved) and not attacked, place a queen there, recurse into &amp;lt;code&amp;gt;row + 1&amp;lt;/code&amp;gt;, then &amp;#039;&amp;#039;&amp;#039;undo the placement&amp;#039;&amp;#039;&amp;#039; (this is the &amp;quot;backtrack&amp;quot; step) before trying the next column.&lt;br /&gt;
* If &amp;lt;code&amp;gt;row == n&amp;lt;/code&amp;gt;, it means all 8 queens were placed successfully — increment the answer.&lt;br /&gt;
&lt;br /&gt;
The undo step is critical: after exploring one branch, the board must be restored to its previous state so the next column can be tried cleanly.&lt;br /&gt;
&lt;br /&gt;
== First Working Version: Brute-Force Attack Checks ==&lt;br /&gt;
&lt;br /&gt;
The simplest (but slowest) way to check if a square is attacked is to literally scan:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Upward&amp;#039;&amp;#039;&amp;#039; in the same column, for an existing queen.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Diagonally up-left&amp;#039;&amp;#039;&amp;#039; (decrementing both row and column).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Diagonally up-right&amp;#039;&amp;#039;&amp;#039; (decrementing row, incrementing column).&lt;br /&gt;
&lt;br /&gt;
This works, and on the actual 8×8 test case it&amp;#039;s already fast (a couple of milliseconds), because the search space collapses quickly once conflicts are found. But it does unnecessary work — every single placement attempt re-scans the whole column and both diagonals.&lt;br /&gt;
&lt;br /&gt;
== Optimizing: O(1) Attack Checks ==&lt;br /&gt;
&lt;br /&gt;
Instead of scanning every time, keep track of which columns and diagonals are &amp;#039;&amp;#039;&amp;#039;already occupied&amp;#039;&amp;#039;&amp;#039; using boolean arrays, updated incrementally as queens are placed and removed.&lt;br /&gt;
&lt;br /&gt;
=== Columns ===&lt;br /&gt;
&lt;br /&gt;
Trivial — one boolean array indexed by column:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
vector&amp;lt;bool&amp;gt; colAttacked(n, false);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Diagonals: The Grid Math Trick ===&lt;br /&gt;
&lt;br /&gt;
This is the part worth internalizing, since it comes up in many other grid problems.&lt;br /&gt;
&lt;br /&gt;
There are two diagonal directions on a grid, and each has a simple invariant:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Diagonal type 1 (↘ direction, i.e. going down-right / cells where row and column both increase together):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Take a 4×4 board and look at the diagonal containing (0,3), (1,2), (2,1), (3,0). Notice:&lt;br /&gt;
&lt;br /&gt;
 row + col = 3   &amp;#039;&amp;#039;&amp;#039;for every cell on this diagonal&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The next diagonal over — (1,3), (2,2), (3,1) — satisfies &amp;lt;code&amp;gt;row + col = 4&amp;lt;/code&amp;gt;. In general:&lt;br /&gt;
&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Two cells lie on the same &amp;quot;↘&amp;quot;-type diagonal if and only if &amp;lt;code&amp;gt;row + col&amp;lt;/code&amp;gt; is the same for both.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This matches the geometric fact that a line of the form &amp;lt;code&amp;gt;y + x = constant&amp;lt;/code&amp;gt; is a straight line tilted at 45°.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Diagonal type 2 (↙ direction):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Look at (1,0), (2,1), (3,2): here &amp;lt;code&amp;gt;row − col = 1&amp;lt;/code&amp;gt; for all of them. In general:&lt;br /&gt;
&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Two cells lie on the same &amp;quot;↙&amp;quot;-type diagonal if and only if &amp;lt;code&amp;gt;row − col&amp;lt;/code&amp;gt; is the same for both.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The negative-index problem:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;row − col&amp;lt;/code&amp;gt; can be negative (e.g. row=0, col=7 gives −7), and arrays can&amp;#039;t have negative indices. The fix is a constant offset: since the minimum possible value of &amp;lt;code&amp;gt;row − col&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;−(n−1)&amp;lt;/code&amp;gt;, add &amp;lt;code&amp;gt;n − 1&amp;lt;/code&amp;gt; to shift everything into the non-negative range:&lt;br /&gt;
&lt;br /&gt;
 index = row - col + (n - 1)&lt;br /&gt;
&lt;br /&gt;
Both diagonal arrays need size &amp;lt;code&amp;gt;2n − 1&amp;lt;/code&amp;gt; (for n=8, that&amp;#039;s 15 — matching the fact that an 8×8 board really does have 15 diagonals in each direction).&lt;br /&gt;
&lt;br /&gt;
== Final Code ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;bits/stdc++.h&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
int n = 8;&lt;br /&gt;
vector&amp;lt;string&amp;gt; grid;&lt;br /&gt;
&lt;br /&gt;
vector&amp;lt;bool&amp;gt; colAttacked(8, false);&lt;br /&gt;
vector&amp;lt;bool&amp;gt; diag1Attacked(15, false); // indexed by row + col&lt;br /&gt;
vector&amp;lt;bool&amp;gt; diag2Attacked(15, false); // indexed by row - col + (n - 1)&lt;br /&gt;
&lt;br /&gt;
long long answer = 0;&lt;br /&gt;
&lt;br /&gt;
void place(int row) {&lt;br /&gt;
    if (row == n) {&lt;br /&gt;
        answer++;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
    for (int col = 0; col &amp;lt; n; col++) {&lt;br /&gt;
        if (grid[row][col] == &amp;#039;*&amp;#039;) continue;               // reserved square&lt;br /&gt;
        if (colAttacked[col]) continue;&lt;br /&gt;
        if (diag1Attacked[row + col]) continue;&lt;br /&gt;
        if (diag2Attacked[row - col + n - 1]) continue;&lt;br /&gt;
&lt;br /&gt;
        // place queen&lt;br /&gt;
        colAttacked[col] = true;&lt;br /&gt;
        diag1Attacked[row + col] = true;&lt;br /&gt;
        diag2Attacked[row - col + n - 1] = true;&lt;br /&gt;
&lt;br /&gt;
        place(row + 1);&lt;br /&gt;
&lt;br /&gt;
        // backtrack: undo placement&lt;br /&gt;
        colAttacked[col] = false;&lt;br /&gt;
        diag1Attacked[row + col] = false;&lt;br /&gt;
        diag2Attacked[row - col + n - 1] = false;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main() {&lt;br /&gt;
    grid.resize(n);&lt;br /&gt;
    for (auto &amp;amp;row : grid) cin &amp;gt;&amp;gt; row;&lt;br /&gt;
&lt;br /&gt;
    place(0);&lt;br /&gt;
    cout &amp;lt;&amp;lt; answer &amp;lt;&amp;lt; endl;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: it&amp;#039;s &amp;#039;&amp;#039;&amp;#039;not necessary&amp;#039;&amp;#039;&amp;#039; to actually mark the square in &amp;lt;code&amp;gt;grid&amp;lt;/code&amp;gt; as a queen (&amp;#039;Q&amp;#039;); the three boolean arrays already fully capture every constraint we need to check, so there&amp;#039;s nothing to gain from also mutating the grid string.&lt;br /&gt;
&lt;br /&gt;
== Complexity ==&lt;br /&gt;
&lt;br /&gt;
* Row 0 has at most 8 choices, row 1 has at most 7 (one column already taken), and so on — giving a rough bound of &amp;#039;&amp;#039;&amp;#039;O(n!)&amp;#039;&amp;#039;&amp;#039;, possibly with an extra factor of n from the per-row scan: &amp;#039;&amp;#039;&amp;#039;O(n! · n)&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* In practice it&amp;#039;s &amp;#039;&amp;#039;&amp;#039;much faster&amp;#039;&amp;#039;&amp;#039; than this bound suggests, because diagonal constraints prune the search tree aggressively. On the empty 8×8 board (the worst case, since nothing is reserved), the recursion has exactly &amp;#039;&amp;#039;&amp;#039;92 leaves&amp;#039;&amp;#039;&amp;#039; (the well-known number of solutions to the 8-queens problem) and runs in about a millisecond.&lt;br /&gt;
* This approach does &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; scale to large n (e.g. n = 1000). Placing n non-attacking queens under arbitrary reserved-square constraints is a much harder problem in general — for large boards you need entirely different techniques (or the instance may simply be intractable).&lt;br /&gt;
&lt;br /&gt;
== What Is Backtracking? ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Backtracking&amp;#039;&amp;#039;&amp;#039; is the name for exactly this pattern: recursively try a choice, recurse further assuming that choice, and if a later step hits a dead end (no valid moves possible), &amp;#039;&amp;#039;&amp;#039;undo the choice&amp;#039;&amp;#039;&amp;#039; (&amp;quot;backtrack&amp;quot;) and try the next alternative. The name comes from the fact that the recursion tree doesn&amp;#039;t just go forward — it routinely retreats and retries.&lt;br /&gt;
&lt;br /&gt;
Some useful mental models:&lt;br /&gt;
&lt;br /&gt;
* It&amp;#039;s the same technique behind &amp;#039;&amp;#039;&amp;#039;Sudoku solvers&amp;#039;&amp;#039;&amp;#039;: try a digit, recurse, and if a contradiction is eventually reached, undo and try a different digit.&lt;br /&gt;
* Backtracking is typically used to find &amp;#039;&amp;#039;&amp;#039;one valid solution&amp;#039;&amp;#039;&amp;#039; (Sudoku) or to &amp;#039;&amp;#039;&amp;#039;count all valid solutions&amp;#039;&amp;#039;&amp;#039; (this problem) when there&amp;#039;s no faster closed-form or DP approach — often because the problem is NP-hard in general.&lt;br /&gt;
* Backtracking problems are almost always about a &amp;quot;good enough&amp;quot; solution rather than a provably optimal one. There is nearly always room to add smarter pruning:&lt;br /&gt;
** Example: if you can detect &amp;#039;&amp;#039;before&amp;#039;&amp;#039; recursing that some later row has only one legal column left, you can propagate that constraint early and cut off huge unproductive branches. This kind of look-ahead pruning can make backtracking &amp;#039;&amp;#039;&amp;#039;hundreds or even thousands of times faster&amp;#039;&amp;#039;&amp;#039; — but it&amp;#039;s an enhancement on top of the base algorithm, not a change to its fundamental structure.&lt;br /&gt;
&lt;br /&gt;
== Key Takeaways ==&lt;br /&gt;
&lt;br /&gt;
* Small constraints (like n = 8) are a strong hint that the intended solution is exponential/factorial-time backtracking.&lt;br /&gt;
* Always pair &amp;quot;make a move&amp;quot; with &amp;quot;undo the move&amp;quot; (backtrack) after the recursive call returns — this is what makes the search correct.&lt;br /&gt;
* For diagonal checks on a grid, remember:&lt;br /&gt;
** &amp;lt;code&amp;gt;row + col&amp;lt;/code&amp;gt; is constant along one diagonal direction.&lt;br /&gt;
** &amp;lt;code&amp;gt;row − col&amp;lt;/code&amp;gt; is constant along the other (add an offset of &amp;lt;code&amp;gt;n − 1&amp;lt;/code&amp;gt; to keep indices non-negative).&lt;br /&gt;
* Prefer O(1) incremental state (boolean arrays) over re-scanning the board on every check — it turns an already-fast solution into a very fast one.&lt;br /&gt;
* Global arrays/variables are common in competitive programming for exactly this kind of state — avoids passing/copying containers on every recursive call.&lt;/div&gt;</description>
			<pubDate>Thu, 03 Sep 2026 04:38:17 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:DSA/Chessboards_and_Queens</comments>
		</item>
		<item>
			<title>Template:DailyJournalPreload</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Template:DailyJournalPreload&amp;diff=370&amp;oldid=361</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Template:DailyJournalPreload&amp;diff=370&amp;oldid=361</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:27, 3 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== TODOs ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== TODOs ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/del&gt;{{{todos|}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{{todos|}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Learnings ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Learnings ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-361:rev-370:php=table --&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 03 Sep 2026 03:57:33 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Template_talk:DailyJournalPreload</comments>
		</item>
		<item>
			<title>Private:Journal/2026/08/31</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Journal/2026/08/31</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Journal/2026/08/31</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Journal/2026/08/31&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Journal/2026/08/31 (page does not exist)&quot;&gt;Private:Journal/2026/08/31&lt;/a&gt; content was: &amp;quot;== TODOs == [] Go through KT videos on FPM project  [] Try to convince Suman for a better project   == Learnings == *  == Thoughts ==&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Tue, 01 Sep 2026 09:19:23 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Journal/2026/08/31</comments>
		</item>
		<item>
			<title>Main Page</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=364&amp;oldid=359</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=364&amp;oldid=359</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:48, 1 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [{{fullurl:Private:Journal/{{#time:Y}}/{{#time:m}}/{{#time:d}}|veaction=edit&amp;amp;preload=Template:DailyJournalPreload}} Create today&#039;s note]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [{{fullurl:Private:Journal/{{#time:Y&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|+5 hours 30 minutes&lt;/ins&gt;}}/{{#time:m&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|+5 hours 30 minutes&lt;/ins&gt;}}/{{#time:d&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|+5 hours 30 minutes&lt;/ins&gt;}}|veaction=edit&amp;amp;preload=Template:DailyJournalPreload&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;}} Create today&#039;s note]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-359:rev-364:php=table --&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 01 Sep 2026 09:18:23 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:Main_Page</comments>
		</item>
		<item>
			<title>Template:DailyJournalPreload</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Template:DailyJournalPreload&amp;diff=361&amp;oldid=351</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Template:DailyJournalPreload&amp;diff=361&amp;oldid=351</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:46, 31 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {{{learnings|}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* {{{learnings|}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Notes &lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Thoughts &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{{notes|}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{{notes|}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-351:rev-361:php=table --&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 31 Aug 2026 12:16:00 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Template_talk:DailyJournalPreload</comments>
		</item>
		<item>
			<title>Main Page</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=359&amp;oldid=352</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=359&amp;oldid=352</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:44, 31 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-multi&quot; lang=&quot;en&quot;&gt;(2 intermediate revisions by the same user not shown)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [{{fullurl:Journal/{{#time:Y}}/{{#time:m}}/{{#time:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Y-m-&lt;/del&gt;d}}|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;action&lt;/del&gt;=edit&amp;amp;preload=Template:DailyJournalPreload}} Create today&#039;s note]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [{{fullurl&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:Private&lt;/ins&gt;:Journal/{{#time:Y}}/{{#time:m}}/{{#time:d}}|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;veaction&lt;/ins&gt;=edit&amp;amp;preload=Template:DailyJournalPreload}} Create today&#039;s note]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 31 Aug 2026 12:14:06 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:Main_Page</comments>
		</item>
		<item>
			<title>Journal/2026/08/2026-08-31</title>
			<link>https://myscratchpad.is-a.dev/index.php/Journal/2026/08/2026-08-31</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Journal/2026/08/2026-08-31</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Journal/2026/08/2026-08-31&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Journal/2026/08/2026-08-31 (page does not exist)&quot;&gt;Journal/2026/08/2026-08-31&lt;/a&gt; content was: &amp;quot;== TODOs == * {{{todos|}}}  == Learnings == * {{{learnings|}}}  == Notes == {{{notes|}}}&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Mon, 31 Aug 2026 05:26:41 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:Journal/2026/08/2026-08-31</comments>
		</item>
		<item>
			<title>Main Page</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=352&amp;oldid=70</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Main_Page&amp;diff=352&amp;oldid=70</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:53, 31 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:RecentChanges|Recent changes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Special:AllPages|Flat list of all pages]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [{{fullurl:Journal/{{#time:Y}}/{{#time:m}}/{{#time:Y-m-d}}|action=edit&amp;amp;preload=Template:DailyJournalPreload}} Create today&#039;s note]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-70:rev-352:php=table --&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 31 Aug 2026 05:23:36 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:Main_Page</comments>
		</item>
		<item>
			<title>Template:DailyJournalPreload</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Template:DailyJournalPreload&amp;diff=351&amp;oldid=0</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Template:DailyJournalPreload&amp;diff=351&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;== TODOs == * {{{todos|}}}  == Learnings == * {{{learnings|}}}  == Notes == {{{notes|}}}&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== TODOs ==&lt;br /&gt;
* {{{todos|}}}&lt;br /&gt;
&lt;br /&gt;
== Learnings ==&lt;br /&gt;
* {{{learnings|}}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{{notes|}}}&lt;/div&gt;</description>
			<pubDate>Mon, 31 Aug 2026 05:23:26 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Template_talk:DailyJournalPreload</comments>
		</item>
		<item>
			<title>Private:Daily</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily (page does not exist)&quot;&gt;Private:Daily&lt;/a&gt; content was: &amp;quot;=== Daily Day Details ===&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Mon, 31 Aug 2026 05:19:34 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily</comments>
		</item>
		<item>
			<title>DSA/CSES 2Knights</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=DSA/CSES_2Knights&amp;diff=350&amp;oldid=0</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=DSA/CSES_2Knights&amp;diff=350&amp;oldid=0</guid>
			<description>&lt;p&gt;Created page with &amp;quot;== Non-Attacking Knights on a k×k Board ==  &amp;#039;&amp;#039;&amp;#039;Problem.&amp;#039;&amp;#039;&amp;#039; For every board size &amp;lt;math&amp;gt;k = 1, 2, \dots, n&amp;lt;/math&amp;gt;, count the number of ways to place &amp;#039;&amp;#039;two&amp;#039;&amp;#039; knights on a &amp;lt;math&amp;gt;k \times k&amp;lt;/math&amp;gt; chessboard so that they do not attack each other.  The core is instead of calculating the possible combinations of placements which is confusing we can do &amp;#039;&amp;#039;total_possibilities - attacking_squares&amp;#039;&amp;#039;  ----  === Step 1: Total ways to place two knights, ignoring attacks ===  A &amp;lt;math&amp;gt;k...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Non-Attacking Knights on a k×k Board ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Problem.&amp;#039;&amp;#039;&amp;#039; For every board size &amp;lt;math&amp;gt;k = 1, 2, \dots, n&amp;lt;/math&amp;gt;, count the number of ways to place &amp;#039;&amp;#039;two&amp;#039;&amp;#039; knights on a &amp;lt;math&amp;gt;k \times k&amp;lt;/math&amp;gt; chessboard so that they do not attack each other.&lt;br /&gt;
&lt;br /&gt;
The core is instead of calculating the possible combinations of placements which is confusing we can do &amp;#039;&amp;#039;total_possibilities - attacking_squares&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Total ways to place two knights, ignoring attacks ===&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;math&amp;gt;k \times k&amp;lt;/math&amp;gt; board has &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt; squares. Placing two (identical, unlabeled) knights on two different squares is just &amp;quot;choose 2 squares out of &amp;lt;math&amp;gt;k^2&amp;lt;/math&amp;gt;&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\binom{k^2}{2} = \frac{k^2(k^2-1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is the total number of placements &amp;#039;&amp;#039;&amp;#039;before&amp;#039;&amp;#039;&amp;#039; removing the ones where the knights attack each other.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Counting the attacking pairs ===&lt;br /&gt;
&lt;br /&gt;
A knight standing at square &amp;lt;math&amp;gt;(x, y)&amp;lt;/math&amp;gt; attacks any square that is offset by one of these 8 vectors:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset (dx, dy)&lt;br /&gt;
|-&lt;br /&gt;
| (1, 2) || (1, −2) || (−1, 2) || (−1, −2)&lt;br /&gt;
|-&lt;br /&gt;
| (2, 1) || (2, −1) || (−2, 1) || (−2, −1)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Notice: in &amp;#039;&amp;#039;&amp;#039;every&amp;#039;&amp;#039;&amp;#039; one of these 8 vectors, the two numbers &amp;lt;math&amp;gt;|dx|&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;|dy|&amp;lt;/math&amp;gt; are just 1 and 2 in some order, with some sign.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How many placements exist for one fixed offset (dx, dy)?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
For the pair of squares &amp;lt;math&amp;gt;(x,y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(x+dx, y+dy)&amp;lt;/math&amp;gt; to both lie on the board, &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;k - |dx|&amp;lt;/math&amp;gt; valid choices, and &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;k - |dy|&amp;lt;/math&amp;gt; valid choices. So the count is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(k - |dx|)(k - |dy|)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\{|dx|, |dy|\} = \{1, 2\}&amp;lt;/math&amp;gt; for all 8 vectors, this is always:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(k-1)(k-2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(No need to clamp negative values to zero — if &amp;lt;math&amp;gt;k=1&amp;lt;/math&amp;gt;, the factor &amp;lt;math&amp;gt;(k-1)=0&amp;lt;/math&amp;gt; already kills the product; if &amp;lt;math&amp;gt;k=2&amp;lt;/math&amp;gt;, the factor &amp;lt;math&amp;gt;(k-2)=0&amp;lt;/math&amp;gt; does the same. The algebra takes care of small boards automatically.)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Summing over all 8 offsets&amp;#039;&amp;#039;&amp;#039; gives the total number of &amp;#039;&amp;#039;ordered&amp;#039;&amp;#039; attacking pairs (i.e., &amp;quot;knight A attacks square B&amp;quot; counted separately from &amp;quot;knight B attacks square A&amp;quot;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;8(k-1)(k-2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But an unordered &amp;#039;&amp;#039;pair&amp;#039;&amp;#039; of squares gets counted twice this way (once in each direction), so the number of unordered attacking pairs is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;E(k) = \frac{8(k-1)(k-2)}{2} = 4(k-1)(k-2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Subtract to get non-attacking pairs ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\text{Answer}(k) = \binom{k^2}{2} - E(k) = \frac{k^2(k^2-1)}{2} - 4(k-1)(k-2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Step 4: Simplify into one closed-form polynomial ===&lt;br /&gt;
&lt;br /&gt;
Expand each piece separately.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;First term:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{k^2(k^2-1)}{2} = \frac{k^4 - k^2}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Second term:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;math&amp;gt;4(k-1)(k-2) = 4(k^2 - 3k + 2) = 4k^2 - 12k + 8&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put both over a common denominator of 2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\text{Answer}(k) = \frac{k^4 - k^2}{2} - \frac{8k^2 - 24k + 16}{2}&lt;br /&gt;
= \frac{k^4 - k^2 - 8k^2 + 24k - 16}{2}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Combine like terms (&amp;lt;math&amp;gt;-k^2 - 8k^2 = -9k^2&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\text{Answer}(k) = \frac{k^4 - 9k^2 + 24k - 16}{2}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Step 5: Sanity check against the example ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! k !! Answer(k)&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 0&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 6&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 28&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 96&lt;br /&gt;
|-&lt;br /&gt;
| 5 || 252&lt;br /&gt;
|-&lt;br /&gt;
| 6 || 550&lt;br /&gt;
|-&lt;br /&gt;
| 7 || 1056&lt;br /&gt;
|-&lt;br /&gt;
| 8 || 1848&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Matches the sample output exactly.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Intuition for k=1 and k=2:&amp;#039;&amp;#039;&amp;#039; On a 1×1 board there&amp;#039;s only one square, so you can&amp;#039;t even place two knights (0 ways). On a 2×2 board, &amp;lt;math&amp;gt;\binom{4}{2}=6&amp;lt;/math&amp;gt; pairs exist, and a knight move needs at least a 3-wide gap in one direction, so &amp;#039;&amp;#039;none&amp;#039;&amp;#039; of them attack — all 6 count.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Step 6: Implementation ===&lt;br /&gt;
&lt;br /&gt;
Since the formula is closed-form, each answer is &amp;lt;math&amp;gt;O(1)&amp;lt;/math&amp;gt; to compute, so the whole solution is &amp;lt;math&amp;gt;O(n)&amp;lt;/math&amp;gt; — trivially fast for &amp;lt;math&amp;gt;n \le 10000&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
def f(k):&lt;br /&gt;
    return (pow(k, 4) - 9 * pow(k, 2) + 24 * k - 16) // 2&lt;br /&gt;
&lt;br /&gt;
n = int(input())&lt;br /&gt;
&lt;br /&gt;
for i in range(1, n + 1):&lt;br /&gt;
    print(f(i))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; the division by 2 is safe as integer division (&amp;lt;code&amp;gt;//&amp;lt;/code&amp;gt;) because &amp;lt;math&amp;gt;k^4 - 9k^2 + 24k - 16&amp;lt;/math&amp;gt; is always even — this follows directly from the derivation, since it came from summing two integer-valued combinatorial counts (&amp;lt;math&amp;gt;\binom{k^2}{2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;E(k)&amp;lt;/math&amp;gt;) that are each themselves always integers, and their difference stays an integer after the &amp;lt;math&amp;gt;\times 2&amp;lt;/math&amp;gt; common denominator was cleared.&lt;br /&gt;
&lt;br /&gt;
[[Category:DSA]]&lt;/div&gt;</description>
			<pubDate>Mon, 31 Aug 2026 05:04:38 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:DSA/CSES_2Knights</comments>
		</item>
		<item>
			<title>CSES/Introductory/Weird Algorithm</title>
			<link>https://myscratchpad.is-a.dev/index.php/CSES/Introductory/Weird_Algorithm</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/CSES/Introductory/Weird_Algorithm</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=CSES/Introductory/Weird_Algorithm&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;CSES/Introductory/Weird Algorithm (page does not exist)&quot;&gt;CSES/Introductory/Weird Algorithm&lt;/a&gt; content was: &amp;quot; Just use Brute Force using while loop  &amp;lt;syntaxhighlight lang=&amp;quot;python3&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt; n = int(input())  while n != 1:     print(n, end=&amp;#039; &amp;#039;, flush=True)     if n % 2 != 0:         n = n*3 + 1     else:         n = n // 2  print(n) &amp;lt;/syntaxhighlight&amp;gt;&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Sun, 30 Aug 2026 09:01:41 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:CSES/Introductory/Weird_Algorithm</comments>
		</item>
		<item>
			<title>CSES/Introductory/Missing Number</title>
			<link>https://myscratchpad.is-a.dev/index.php/CSES/Introductory/Missing_Number</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/CSES/Introductory/Missing_Number</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=CSES/Introductory/Missing_Number&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;CSES/Introductory/Missing Number (page does not exist)&quot;&gt;CSES/Introductory/Missing Number&lt;/a&gt; content was: &amp;quot; For a number series from 1 to n the sum is &amp;lt;math&amp;gt;sum = (n * (n+1))/2&amp;lt;/math&amp;gt; so the missing number must be &amp;lt;math&amp;gt;sum - input\_sum&amp;lt;/math&amp;gt;  &amp;lt;syntaxhighlight lang=&amp;quot;python3&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt; n = int(input()) nums = map(int, input().split()) print((n * (n + 1) // 2) - sum(nums)) &amp;lt;/syntaxhighlight&amp;gt;&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Sun, 30 Aug 2026 09:01:31 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Talk:CSES/Introductory/Missing_Number</comments>
		</item>
		<item>
			<title>Private:Daily/27Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/27Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/27Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/27Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/27Aug2026 (page does not exist)&quot;&gt;Private:Daily/27Aug2026&lt;/a&gt; content was: &amp;quot;== TODOS == [] Revise all topics from the week 1 on boarding plan  [] Revise python for DSA  [] Start working on CSES problems  == LEARNINGS ==&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:18:27 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/27Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/26Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/26Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/26Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/26Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/26Aug2026 (page does not exist)&quot;&gt;Private:Daily/26Aug2026&lt;/a&gt; content was: &amp;quot;# Learned about multiple AWS services # Attended sessions on TOPS 2 application and team norms  == TODOS == [x] Create a skill for AI FDE design tokens and patterns  [x] Create a skill for AI FDE to make a PPT&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:18:15 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/26Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/25Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/25Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/25Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/25Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/25Aug2026 (page does not exist)&quot;&gt;Private:Daily/25Aug2026&lt;/a&gt; content was: &amp;quot;# Learned about something related to TOPS2 # Completed the design for POC of IQE agents  == TODOS == [x] Complete the design for IQE POC [x] extract the design theme and tokens for CBRE emarald theme&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:18:10 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/25Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/24Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/24Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/24Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/24Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/24Aug2026 (page does not exist)&quot;&gt;Private:Daily/24Aug2026&lt;/a&gt; content was: &amp;quot; # Created an IQE generic Agent but haven&amp;#039;t tested on anything but introduced many methodologies and stuff into it to make it efficient and better # Revised Python, React, Typescript  [x] Complete draft of IQE agent. [] Research about Life Sciences companies&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:18:02 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/24Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/21Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/21Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/21Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/21Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/21Aug2026 (page does not exist)&quot;&gt;Private:Daily/21Aug2026&lt;/a&gt; content was: &amp;quot;# Worked on QE Agent POC with 2 different approaches #* First approach is to do based on the human decided goals and testing that but not complete the full requirement #* Second approach is to get GitHub issues, PR and then crawl around then test the quality but the issue is scope not definable properly and getting more complex&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:17:58 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/21Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/20Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/20Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/20Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/20Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/20Aug2026 (page does not exist)&quot;&gt;Private:Daily/20Aug2026&lt;/a&gt; content was: &amp;quot; # Learned about ontology functions. # Started to work on Autonomous QE Agent POC, doesn&amp;#039;t know whether it&amp;#039;s going to be a success or not but using all the techniques and methodologies I know for better     efficiencies.  == TODOS == [x] Create a comprehensive research document on QE Agent creation -&amp;gt; Think about harness of context in loops/iterations. [x] Learn Ontology functions [...&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:17:54 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/20Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/19Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/19Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/19Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/19Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/19Aug2026 (page does not exist)&quot;&gt;Private:Daily/19Aug2026&lt;/a&gt; content was: &amp;quot;# Learned about ontology creation, object creations, workspace creations # Got to know about the CBRE AI Agent integration little bit. Seems like they are facing issues with QE Agents #* The proposed solution is not a straight forward because first I need to understand how exactly their agents are working are they just sending the code to models and writing some prompts and getting...&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:17:50 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/19Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/18Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/18Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/18Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/18Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/18Aug2026 (page does not exist)&quot;&gt;Private:Daily/18Aug2026&lt;/a&gt; content was: &amp;quot;* Started Exploring what is Palantir, ontology and other stuff * Got the Palantir and GitHub copilot access EOD&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:17:42 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/18Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/17Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/17Aug2026</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/17Aug2026</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/17Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/17Aug2026 (page does not exist)&quot;&gt;Private:Daily/17Aug2026&lt;/a&gt; content was: &amp;quot;#REDIRECT &lt;a href=&quot;/index.php?title=Private:Daily/2026/August/17&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/2026/August/17 (page does not exist)&quot;&gt;Private:Daily/2026/August/17&lt;/a&gt;&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:17:34 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/17Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/2026/August/17</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/2026/August/17</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/2026/August/17</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/2026/August/17&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/2026/August/17 (page does not exist)&quot;&gt;Private:Daily/2026/August/17&lt;/a&gt; content was: &amp;quot;* Got on boarded into CBRE * Collected Laptop from Rajan * Start setting up some basic essentials in laptop&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:17:02 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/2026/August/17</comments>
		</item>
		<item>
			<title>Private:Daily/17Aug2026</title>
			<link>https://myscratchpad.is-a.dev/index.php?title=Private:Daily/17Aug2026&amp;diff=343&amp;oldid=0</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php?title=Private:Daily/17Aug2026&amp;diff=343&amp;oldid=0</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; moved page &lt;a href=&quot;/index.php?title=Private:Daily/17Aug2026&amp;amp;redirect=no&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/17Aug2026 (page does not exist)&quot;&gt;Private:Daily/17Aug2026&lt;/a&gt; to &lt;a href=&quot;/index.php?title=Private:Daily/2026/August/17&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/2026/August/17 (page does not exist)&quot;&gt;Private:Daily/2026/August/17&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:16:37 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/17Aug2026</comments>
		</item>
		<item>
			<title>Private:Daily/2026/August/17</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/2026/August/17</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/2026/August/17</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/2026/August/17&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/2026/August/17 (page does not exist)&quot;&gt;Private:Daily/2026/August/17&lt;/a&gt; Deleted to make way for move from &amp;quot;&lt;a href=&quot;/index.php?title=Private:Daily/17Aug2026&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/17Aug2026 (page does not exist)&quot;&gt;Private:Daily/17Aug2026&lt;/a&gt;&amp;quot;&lt;/p&gt;
</description>
			<pubDate>Thu, 27 Aug 2026 09:16:37 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/2026/August/17</comments>
		</item>
		<item>
			<title>Private:Daily/Daily</title>
			<link>https://myscratchpad.is-a.dev/index.php/Private:Daily/Daily</link>
			<guid isPermaLink="false">https://myscratchpad.is-a.dev/index.php/Private:Daily/Daily</guid>
			<description>&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new mw-userlink&quot; title=&quot;User:Admin (page does not exist)&quot;&gt;&lt;bdi&gt;Admin&lt;/bdi&gt;&lt;/a&gt; deleted page &lt;a href=&quot;/index.php?title=Private:Daily/Daily&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Private:Daily/Daily (page does not exist)&quot;&gt;Private:Daily/Daily&lt;/a&gt; content was: &amp;quot;=== Daily Day Details ===&amp;quot;, and the only contributor was &amp;quot;&lt;a href=&quot;/index.php/Special:Contributions/Admin&quot; title=&quot;Special:Contributions/Admin&quot;&gt;Admin&lt;/a&gt;&amp;quot; (&lt;a href=&quot;/index.php?title=User_talk:Admin&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Admin (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
</description>
			<pubDate>Mon, 24 Aug 2026 10:26:00 GMT</pubDate>
			<dc:creator>Admin</dc:creator>
			<comments>https://myscratchpad.is-a.dev/index.php/Private_talk:Daily/Daily</comments>
		</item>
</channel></rss>